diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-17 18:43:40 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-17 23:34:39 -0400 |
commit | 45615cedd10fb5dc3c502815ed4d98b6d4e4488a (patch) | |
tree | 87df9ab14c1907990e84ab871695284d953140da /src/nvim/ex_docmd.c | |
parent | 27a67288485d890cd514bced11833fa010ed0b92 (diff) | |
download | rneovim-45615cedd10fb5dc3c502815ed4d98b6d4e4488a.tar.gz rneovim-45615cedd10fb5dc3c502815ed4d98b6d4e4488a.tar.bz2 rneovim-45615cedd10fb5dc3c502815ed4d98b6d4e4488a.zip |
vim-patch:8.2.1472: ":argdel" does not work like ":.argdel" as documented
Problem: ":argdel" does not work like ":.argdel" as documented. (Alexey
Demin)
Solution: Make ":argdel" work like ":.argdel". (closes vim/vim#6727)
Also fix giving the error "0 more files to edit".
https://github.com/vim/vim/commit/7b22117c4ecf383b6f35acef041773a83ec28220
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 064cebe016..1160ab835b 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -4949,7 +4949,7 @@ check_more( int n = ARGCOUNT - curwin->w_arg_idx - 1; if (!forceit && only_one_window() - && ARGCOUNT > 1 && !arg_had_last && n >= 0 && quitmore == 0) { + && ARGCOUNT > 1 && !arg_had_last && n > 0 && quitmore == 0) { if (message) { if ((p_confirm || cmdmod.confirm) && curbuf->b_fname != NULL) { char_u buff[DIALOG_MSG_SIZE]; |