diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-21 12:04:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 12:04:06 -0400 |
commit | 070e084a64dd08ff28c826843f0d61ca51837841 (patch) | |
tree | 34a631b515f553447aa21f0400c8a576bb20dc61 /src/nvim/tag.c | |
parent | e5bef5974e900001cb6ed302b39a6f5ddf48d9a4 (diff) | |
parent | c620ca4cc2f5c0b3cebde2e172ed1682b06f4495 (diff) | |
download | rneovim-070e084a64dd08ff28c826843f0d61ca51837841.tar.gz rneovim-070e084a64dd08ff28c826843f0d61ca51837841.tar.bz2 rneovim-070e084a64dd08ff28c826843f0d61ca51837841.zip |
Merge pull request #14172 from janlazo/vim-8.2.2622
vim-patch:8.2.{2622,2624,2625,2626,2631,2634}
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r-- | src/nvim/tag.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 4ea298fba9..8d9ae68985 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -1141,7 +1141,7 @@ static int 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]; @@ -1170,9 +1170,10 @@ static int 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); |