aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorRob Pilling <robpilling@gmail.com>2019-10-10 22:06:45 +0100
committerRob Pilling <robpilling@gmail.com>2019-10-22 20:13:02 +0100
commit194f7bfacea934177d524197127242947bd28471 (patch)
treed13ac87810663c783907e96c8a9a691630755ddf /src/nvim/edit.c
parente284b7233fb459a7a6d4ce0f98371b34b3639d2b (diff)
downloadrneovim-194f7bfacea934177d524197127242947bd28471.tar.gz
rneovim-194f7bfacea934177d524197127242947bd28471.tar.bz2
rneovim-194f7bfacea934177d524197127242947bd28471.zip
vim-patch:8.1.1228: not possible to process tags with a function
Problem: Not possible to process tags with a function. Solution: Add tagfunc() (Christian Brabandt, Andy Massimino, closes vim/vim#4010) https://github.com/vim/vim/commit/45e18cbdc40afd8144d20dcc07ad2d981636f4c9
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 16c4882975..a4b4e0d980 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -4047,12 +4047,14 @@ static int ins_compl_get_exp(pos_T *ini)
// Find up to TAG_MANY matches. Avoids that an enormous number
// of matches is found when compl_pattern is empty
+ g_tag_at_cursor = true;
if (find_tags(compl_pattern, &num_matches, &matches,
TAG_REGEXP | TAG_NAMES | TAG_NOIC | TAG_INS_COMP
| (l_ctrl_x_mode != CTRL_X_NORMAL ? TAG_VERBOSE : 0),
TAG_MANY, curbuf->b_ffname) == OK && num_matches > 0) {
ins_compl_add_matches(num_matches, matches, p_ic);
}
+ g_tag_at_cursor = false;
p_ic = save_p_ic;
break;