diff options
author | tomKPZ | 2022-02-18 03:13:02 +0000 |
---|---|---|
committer | GitHub | 2022-02-18 03:13:02 +0000 |
commit | 368064e316ef75076b037af893af3c4eb483c594 (patch) | |
tree | 3a7dff85bc0be80ae32c36e5a86e4ee182cf1c96 | |
parent | afec54485a3be29ff1172f70157a183853273420 (diff) |
Fix bug when launching hx file.rs:10 (#1676)
-rw-r--r-- | helix-term/src/args.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/args.rs b/helix-term/src/args.rs index 247d5b32..3e50f66f 100644 --- a/helix-term/src/args.rs +++ b/helix-term/src/args.rs @@ -82,7 +82,7 @@ fn split_path_row_col(s: &str) -> Option<(PathBuf, Position)> { /// /// Does not validate if file.rs is a file or directory. fn split_path_row(s: &str) -> Option<(PathBuf, Position)> { - let (row, path) = s.rsplit_once(':')?; + let (path, row) = s.rsplit_once(':')?; let row: usize = row.parse().ok()?; let path = path.into(); let pos = Position::new(row.saturating_sub(1), 0); |