aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorDavid Bürgin <676c7473@gmail.com>2015-05-13 21:35:29 +0200
committerJustin M. Keyes <justinkz@gmail.com>2015-05-21 01:31:30 -0400
commit32837cc7df5da97b367da61fdb6e5da47f55e590 (patch)
tree1778b756fb8fc94c6e243563807f3f3827d2811c /src/nvim/ex_docmd.c
parenteca51bbfa033f4956f5430fa15fa18c91a5fffef (diff)
downloadrneovim-32837cc7df5da97b367da61fdb6e5da47f55e590.tar.gz
rneovim-32837cc7df5da97b367da61fdb6e5da47f55e590.tar.bz2
rneovim-32837cc7df5da97b367da61fdb6e5da47f55e590.zip
'cpoptions': Remove "-" flag #2655
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index ee935773b4..b55b59453f 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -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)