mirror of https://github.com/helix-editor/helix
Add feature set position to EOF when no line number is specified after + argument
parent
f75d71844f
commit
28fdbda247
|
@ -103,9 +103,9 @@ impl Args {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
arg if arg.starts_with('+') => {
|
arg if arg.starts_with('+') => {
|
||||||
match arg[1..].parse::<usize>() {
|
line_number = match arg[1..].parse::<usize>() {
|
||||||
Ok(n) => line_number = n.saturating_sub(1),
|
Ok(n) => n.saturating_sub(1),
|
||||||
_ => insert_file_with_position(arg),
|
_ => usize::MAX,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
arg => insert_file_with_position(arg),
|
arg => insert_file_with_position(arg),
|
||||||
|
|
Loading…
Reference in New Issue