mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
fixup! vim-patch:8.1.1228: not possible to process tags with a function
This commit is contained in:
parent
30987b9190
commit
5110ef9171
@ -1143,7 +1143,6 @@ static int find_tagfunc_tags(
|
|||||||
typval_T args[4];
|
typval_T args[4];
|
||||||
typval_T rettv;
|
typval_T rettv;
|
||||||
char_u flagString[4];
|
char_u flagString[4];
|
||||||
dict_T *d;
|
|
||||||
taggy_T *tag = &curwin->w_tagstack[curwin->w_tagstackidx];
|
taggy_T *tag = &curwin->w_tagstack[curwin->w_tagstackidx];
|
||||||
|
|
||||||
if (*curbuf->b_p_tfu == NUL) {
|
if (*curbuf->b_p_tfu == NUL) {
|
||||||
@ -1156,7 +1155,7 @@ static int find_tagfunc_tags(
|
|||||||
args[1].vval.v_string = flagString;
|
args[1].vval.v_string = flagString;
|
||||||
|
|
||||||
// create 'info' dict argument
|
// create 'info' dict argument
|
||||||
d = tv_dict_alloc();
|
dict_T *const d = tv_dict_alloc_lock(VAR_FIXED);
|
||||||
if (tag->user_data != NULL) {
|
if (tag->user_data != NULL) {
|
||||||
tv_dict_add_str(d, S_LEN("user_data"), (const char *)tag->user_data);
|
tv_dict_add_str(d, S_LEN("user_data"), (const char *)tag->user_data);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user