From 368064e316ef75076b037af893af3c4eb483c594 Mon Sep 17 00:00:00 2001 From: tomKPZ Date: Thu, 17 Feb 2022 19:13:02 -0800 Subject: [PATCH] Fix bug when launching hx file.rs:10 (#1676) --- helix-term/src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);