aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helix-term/src/args.rs2
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);