Skip to content

Commit

Permalink
Fix bug when launching hx file.rs:10 (helix-editor#1676)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomKPZ authored and dead10ck committed Feb 20, 2022
1 parent 2827c63 commit 02f2288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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);
Expand Down

0 comments on commit 02f2288

Please sign in to comment.