Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | helix-term/src/args.rs | 1 | ||||
| -rw-r--r-- | helix-term/src/main.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/args.rs b/helix-term/src/args.rs index 9b1b4409..090c1192 100644 --- a/helix-term/src/args.rs +++ b/helix-term/src/args.rs @@ -102,6 +102,7 @@ impl Args { } } } + "+" => line_number = usize::MAX, arg if arg.starts_with('+') => { match arg[1..].parse::<usize>() { Ok(n) => line_number = n.saturating_sub(1), diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs index ca12de2a..bdca0c01 100644 --- a/helix-term/src/main.rs +++ b/helix-term/src/main.rs @@ -75,7 +75,8 @@ FLAGS: --vsplit Split all given files vertically into different windows --hsplit Split all given files horizontally into different windows -w, --working-dir <path> Specify an initial working directory - +N Open the first given file at line number N + +[N] Open the first given file at line number N, or the last line, if + N is not specified. ", env!("CARGO_PKG_NAME"), VERSION_AND_GIT_HASH, |