diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-03-07 19:18:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-03-07 19:18:23 +0100 |
commit | 146e9c38866248ff92f6109c536bbe79744256f5 (patch) | |
tree | dc355606924b00ad8741b10056b742458ea506dc /src/ex_getln.c | |
parent | 552ac13d55d3edd961c789dbff126d15fb51ac75 (diff) | |
download | vim-git-146e9c38866248ff92f6109c536bbe79744256f5.tar.gz |
updated for version 7.3.465v7.3.465
Problem: Cannot get file name with newline from glob().
Solution: Add argument to glob() and expand() to indicate they must return a
list. (Christian Brabandt)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index f811889d3..38775af60 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -3461,6 +3461,7 @@ nextwild(xp, type, options) * mode = WILD_PREV: use previous match in multiple match, wrap to first * mode = WILD_ALL: return all matches concatenated * mode = WILD_LONGEST: return longest matched part + * mode = WILD_ALL_KEEP: get all matches, keep matches * * options = WILD_LIST_NOTFOUND: list entries without a match * options = WILD_HOME_REPLACE: do home_replace() for buffer names @@ -3584,7 +3585,8 @@ ExpandOne(xp, str, orig, options, mode) /* * Check for matching suffixes in file names. */ - if (mode != WILD_ALL && mode != WILD_LONGEST) + if (mode != WILD_ALL && mode != WILD_ALL_KEEP + && mode != WILD_LONGEST) { if (xp->xp_numfiles) non_suf_match = xp->xp_numfiles; |