diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-21 14:49:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-21 14:49:57 +0100 |
commit | f90c855c71863296859780f7b4e0386e96f1c465 (patch) | |
tree | a542be8accf9a37cd1c369c5b4a3f7d2f8df96ec /src/tag.c | |
parent | 196a1f740981e878091fa124a400d1fc4bfa2bb0 (diff) | |
download | vim-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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |