mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
'cpoptions': Remove "-" flag #2655
This commit is contained in:

committed by
Justin M. Keyes

parent
eca51bbfa0
commit
32837cc7df
@@ -1684,12 +1684,7 @@ static char_u * do_one_cmd(char_u **cmdlinep,
|
||||
}
|
||||
} else if (ea.addr_count != 0) {
|
||||
if (ea.line2 > curbuf->b_ml.ml_line_count) {
|
||||
/* With '-' in 'cpoptions' a line number past the file is an
|
||||
* error, otherwise put it at the end of the file. */
|
||||
if (vim_strchr(p_cpo, CPO_MINUS) != NULL)
|
||||
ea.line2 = -1;
|
||||
else
|
||||
ea.line2 = curbuf->b_ml.ml_line_count;
|
||||
ea.line2 = curbuf->b_ml.ml_line_count;
|
||||
}
|
||||
|
||||
if (ea.line2 < 0)
|
||||
|
Reference in New Issue
Block a user