summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-03-21 14:49:57 +0100
committerBram Moolenaar <Bram@vim.org>2021-03-21 14:49:57 +0100
commitf90c855c71863296859780f7b4e0386e96f1c465 (patch)
treea542be8accf9a37cd1c369c5b4a3f7d2f8df96ec /src/tag.c
parent196a1f740981e878091fa124a400d1fc4bfa2bb0 (diff)
downloadvim-git-f90c855c71863296859780f7b4e0386e96f1c465.tar.gz
patch 8.2.2634: 'tagfunc' does not indicate using a patternv8.2.2634
Problem: 'tagfunc' does not indicate using a pattern. Solution: Add the "r" flag. (Andy Massimino, closes #7982)
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tag.c b/src/tag.c
index f26c7cd63..37ed66c6e 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -1308,7 +1308,7 @@ find_tagfunc_tags(
int result = FAIL;
typval_T args[4];
typval_T rettv;
- char_u flagString[3];
+ char_u flagString[4];
dict_T *d;
taggy_T *tag = &curwin->w_tagstack[curwin->w_tagstackidx];
@@ -1335,9 +1335,10 @@ find_tagfunc_tags(
args[3].v_type = VAR_UNKNOWN;
vim_snprintf((char *)flagString, sizeof(flagString),
- "%s%s",
+ "%s%s%s",
g_tag_at_cursor ? "c": "",
- flags & TAG_INS_COMP ? "i": "");
+ flags & TAG_INS_COMP ? "i": "",
+ flags & TAG_REGEXP ? "r": "");
save_pos = curwin->w_cursor;
result = call_vim_function(curbuf->b_p_tfu, 3, args, &rettv);