summaryrefslogtreecommitdiffstats
path: root/src/insexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-28 18:05:35 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-28 18:05:35 +0200
commit45e18cbdc40afd8144d20dcc07ad2d981636f4c9 (patch)
tree11762469ca5d6c4bd49ca50381160afd30dcb2f3 /src/insexpand.c
parent7a9df9dd00bac462a2942dc798e298f365779fd0 (diff)
patch 8.1.1228: not possible to process tags with a functionv8.1.1228
Problem: Not possible to process tags with a function. Solution: Add tagfunc() (Christian Brabandt, Andy Massimino, closes #4010)
Diffstat (limited to 'src/insexpand.c')
-rw-r--r--src/insexpand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index ad95acc2e2..eeff64ca2c 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -2654,11 +2654,13 @@ 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
| (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;