From 28fdbda24742ee48dba7261fd6067b21c21ce5a6 Mon Sep 17 00:00:00 2001 From: Nathan Spelts Date: Sun, 29 Jun 2025 12:57:15 -0700 Subject: [PATCH] Add feature set position to EOF when no line number is specified after + argument --- helix-term/src/args.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helix-term/src/args.rs b/helix-term/src/args.rs index 9b1b4409b..00116fff5 100644 --- a/helix-term/src/args.rs +++ b/helix-term/src/args.rs @@ -103,9 +103,9 @@ impl Args { } } arg if arg.starts_with('+') => { - match arg[1..].parse::() { - Ok(n) => line_number = n.saturating_sub(1), - _ => insert_file_with_position(arg), + line_number = match arg[1..].parse::() { + Ok(n) => n.saturating_sub(1), + _ => usize::MAX, }; } arg => insert_file_with_position(arg),