diff options
author | vimboss <devnull@localhost> | 2009-06-24 15:05:00 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2009-06-24 15:05:00 +0000 |
commit | 567112e68dd63bbf25432a77856b24317dc16474 (patch) | |
tree | 03a08d4a470ba2d20701a3e7d533fc811ff7abe9 | |
parent | 15b2bcb8351b5d00b16dc972c42f428ea0138296 (diff) | |
download | vim-567112e68dd63bbf25432a77856b24317dc16474.tar.gz |
-rw-r--r-- | src/ex_getln.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index cef83921..c9d8c305 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4874,14 +4874,14 @@ ExpandUserList(xp, num_file, file) /* Loop over the items in the list. */ for (li = retlist->lv_first; li != NULL; li = li->li_next) { - if (li->li_tv.v_type != VAR_STRING) - continue; /* Skip non-string items */ + if (li->li_tv.v_type != VAR_STRING || li->li_tv.vval.v_string == NULL) + continue; /* Skip non-string items and empty strings */ if (ga_grow(&ga, 1) == FAIL) break; ((char_u **)ga.ga_data)[ga.ga_len] = - vim_strsave(li->li_tv.vval.v_string); + vim_strsave(li->li_tv.vval.v_string); ++ga.ga_len; } list_unref(retlist); diff --git a/src/version.c b/src/version.c index c367c102..0ef972ad 100644 --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 214, +/**/ 213, /**/ 212, |