diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-02-27 18:43:05 +0100 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-02-27 18:47:04 +0100 |
commit | 8d5e60d8afa2e5e6940cbed59a353c51817cb89a (patch) | |
tree | 0c7146f3cf65c27efe54fe397a4f12b0e5544f07 /src/nvim/ex_cmds2.c | |
parent | 3e0fab6b7ca3ece5ffe8cf07cb80f4037c08e3f0 (diff) | |
download | rneovim-8d5e60d8afa2e5e6940cbed59a353c51817cb89a.tar.gz rneovim-8d5e60d8afa2e5e6940cbed59a353c51817cb89a.tar.bz2 rneovim-8d5e60d8afa2e5e6940cbed59a353c51817cb89a.zip |
vim-patch:7.4.1112
Problem: When using ":next" with an illegal file name no error is reported.
Solution: Give an error message.
https://github.com/vim/vim/commit/2db5c3b3ceeaded7fb5a64dc5cb22b0cb95b78a1
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 47774f5a99..b415b51d71 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -1537,9 +1537,7 @@ do_arglist ( int i = expand_wildcards(new_ga.ga_len, (char_u **)new_ga.ga_data, &exp_count, &exp_files, EW_DIR|EW_FILE|EW_ADDSLASH|EW_NOTFOUND); ga_clear(&new_ga); - if (i == FAIL) - return FAIL; - if (exp_count == 0) { + if (i == FAIL || exp_count == 0) { EMSG(_(e_nomatch)); return FAIL; } |