aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2017-11-11 08:26:55 +0800
committerJustin M. Keyes <justinkz@gmail.com>2017-11-11 01:26:55 +0100
commita2fdd0a72f9d1f72f2e49e80719902a6f555454e (patch)
treec713f0ae1481ad5cf2eabaa8e4678909d205cf85 /src/nvim/ex_getln.c
parent4fa0970519c332350ce7cc687a0cd93ace17f5ca (diff)
downloadrneovim-a2fdd0a72f9d1f72f2e49e80719902a6f555454e.tar.gz
rneovim-a2fdd0a72f9d1f72f2e49e80719902a6f555454e.tar.bz2
rneovim-a2fdd0a72f9d1f72f2e49e80719902a6f555454e.zip
vim-patch:8.0.0237 (#7531)
Problem: When setting wildoptions=tagfile the completion context is not set correctly. (desjardins) Solution: Check for EXPAND_TAGS_LISTFILES. (Christian Brabandt, closes vim/vim#1399) https://github.com/vim/vim/commit/ba47b51ff88d91c9bb5aa522183e23a656865697
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 43e7cf457d..9c9ccbca4d 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -4147,7 +4147,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 {
new_len = len + 2; /* +2 for '^' at start, NUL at end */