mirror of https://github.com/helix-editor/helix
Merge 28fdbda247
into 395a71bf53
commit
1520c4daf9
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue