Mercurial > vim
diff src/tag.c @ 24186:4902263c302e v8.2.2634
patch 8.2.2634: 'tagfunc' does not indicate using a pattern
Commit: https://github.com/vim/vim/commit/f90c855c71863296859780f7b4e0386e96f1c465
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 21 14:49:57 2021 +0100
patch 8.2.2634: 'tagfunc' does not indicate using a pattern
Problem: 'tagfunc' does not indicate using a pattern.
Solution: Add the "r" flag. (Andy Massimino, closes https://github.com/vim/vim/issues/7982)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Mar 2021 15:00:03 +0100 |
parents | bcf16185be60 |
children | 5c456a88f651 |
line wrap: on
line diff
--- 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);