Add feature set position to EOF when no line number is specified after + argument

pull/13865/head
Nathan Spelts 2025-06-29 12:57:15 -07:00
parent f75d71844f
commit 28fdbda247
No known key found for this signature in database
GPG Key ID: 2E16BE1BA03DBDF0
1 changed files with 3 additions and 3 deletions

View File

@ -103,9 +103,9 @@ impl Args {
}
}
arg if arg.starts_with('+') => {
match arg[1..].parse::<usize>() {
Ok(n) => line_number = n.saturating_sub(1),
_ => insert_file_with_position(arg),
line_number = match arg[1..].parse::<usize>() {
Ok(n) => n.saturating_sub(1),
_ => usize::MAX,
};
}
arg => insert_file_with_position(arg),