diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-01-24 21:18:19 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-01-24 21:18:19 +0100 |
commit | ba47b51ff88d91c9bb5aa522183e23a656865697 (patch) | |
tree | 5075a44098ac6b8e0e95a11c34c6054e69fb3415 /src/ex_getln.c | |
parent | 6a717f17ec6b09634be1c29e0ac4c35213f7b32d (diff) | |
download | vim-git-ba47b51ff88d91c9bb5aa522183e23a656865697.tar.gz |
patch 8.0.0237: when 'wildoptions' is "tagfile" completion may not workv8.0.0237
Problem: When setting wildoptions=tagfile the completion context is not set
correctly. (desjardins)
Solution: Check for EXPAND_TAGS_LISTFILES. (Christian Brabandt, closes #1399)
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 7de7246b5..4365100a2 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4366,7 +4366,9 @@ addstar( || context == EXPAND_OWNSYNTAX || context == EXPAND_FILETYPE || context == EXPAND_PACKADD - || (context == EXPAND_TAGS && fname[0] == '/')) + || ((context == EXPAND_TAGS_LISTFILES + || context == EXPAND_TAGS) + && fname[0] == '/')) retval = vim_strnsave(fname, len); else { |