diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-01-22 18:37:26 +0100 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-01-22 19:26:23 +0100 |
commit | 22230196cb7cee5c055a0be7a1864ecaf11a7c54 (patch) | |
tree | 76df83f33a5db462b820ade127bdf5882958b392 /src/nvim/ex_getln.c | |
parent | feb70192a85d04343ecc383ea9a42aa8cd15e98d (diff) | |
download | rneovim-22230196cb7cee5c055a0be7a1864ecaf11a7c54.tar.gz rneovim-22230196cb7cee5c055a0be7a1864ecaf11a7c54.tar.bz2 rneovim-22230196cb7cee5c055a0be7a1864ecaf11a7c54.zip |
vim-patch:7.4.654
Problem: glob() and globpath() cannot include links to non-existing files.
(Charles Campbell)
Solution: Add an argument to include all links with glob(). (James McCoy)
Also for globpath().
https://github.com/vim/vim/commit/a245bc79b4c6b83a4b5b6cdb95c4d2165762a20b
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 87a6bf8901..b19331ad06 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -3701,6 +3701,9 @@ ExpandFromContext ( flags |= EW_KEEPALL; if (options & WILD_SILENT) flags |= EW_SILENT; + if (options & WILD_ALLLINKS) { + flags |= EW_ALLLINKS; + } if (xp->xp_context == EXPAND_FILES || xp->xp_context == EXPAND_DIRECTORIES |