aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-13 20:54:12 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-13 21:00:28 -0400
commit5110ef9171ac63994a02ce2f215dbae308877b07 (patch)
tree984d14da32ae8e38ef87bf68427f0316a5d173cd
parent30987b9190459b0b16a644de5c04d7e5eecf472e (diff)
downloadrneovim-5110ef9171ac63994a02ce2f215dbae308877b07.tar.gz
rneovim-5110ef9171ac63994a02ce2f215dbae308877b07.tar.bz2
rneovim-5110ef9171ac63994a02ce2f215dbae308877b07.zip
fixup! vim-patch:8.1.1228: not possible to process tags with a function
-rw-r--r--src/nvim/tag.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index a6310344e9..f0e48013b2 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -1143,7 +1143,6 @@ static int find_tagfunc_tags(
typval_T args[4];
typval_T rettv;
char_u flagString[4];
- dict_T *d;
taggy_T *tag = &curwin->w_tagstack[curwin->w_tagstackidx];
if (*curbuf->b_p_tfu == NUL) {
@@ -1156,7 +1155,7 @@ static int find_tagfunc_tags(
args[1].vval.v_string = flagString;
// create 'info' dict argument
- d = tv_dict_alloc();
+ dict_T *const d = tv_dict_alloc_lock(VAR_FIXED);
if (tag->user_data != NULL) {
tv_dict_add_str(d, S_LEN("user_data"), (const char *)tag->user_data);
}