Mercurial > vim
changeset 2354:f4440cdd59ae vim73
Fixed: crash with ":find " completion, using uninitialized count.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 19 Jul 2010 23:11:27 +0200 |
parents | 467e100ee6ab |
children | 84c7eeeb09e2 |
files | src/misc1.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc1.c +++ b/src/misc1.c @@ -8550,7 +8550,7 @@ expand_wildcards_eval(pat, num_file, fil /* * Expand wildcards. Calls gen_expand_wildcards() and removes files matching * 'wildignore'. - * Returns OK or FAIL. + * Returns OK or FAIL. When FAIL then "num_file" won't be set. */ int expand_wildcards(num_pat, pat, num_file, file, flags) @@ -8568,7 +8568,7 @@ expand_wildcards(num_pat, pat, num_file, retval = gen_expand_wildcards(num_pat, pat, num_file, file, flags); /* When keeping all matches, return here */ - if (flags & EW_KEEPALL) + if ((flags & EW_KEEPALL) || retval == FAIL) return retval; #ifdef FEAT_WILDIGN