From 57b577df3217b4f28abff6fe3c0a480192927ae2 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Fri, 30 Jan 2026 09:45:55 +0000 Subject: [PATCH] patch 9.1.2116: crash when using 'tagfunc' Problem: crash when using 'tagfunc' (Rodrigo Queipo) Solution: Do not add the user_data to the 'info' dictionary when called for insert mode completion (the TAG_INS_COMP flag is set). Completion should not depend on the state of a previous tag jump. (Yasuhiro Matsumoto) fixes: #19255 closes: #19284 Signed-off-by: Yasuhiro Matsumoto Signed-off-by: Christian Brabandt --- src/tag.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tag.c b/src/tag.c index b2ecb56561..07890943f1 100644 --- a/src/tag.c +++ b/src/tag.c @@ -1460,7 +1460,7 @@ find_tagfunc_tags( // create 'info' dict argument if ((d = dict_alloc_lock(VAR_FIXED)) == NULL) return FAIL; - if (tag->user_data != NULL) + if (!(flags & TAG_INS_COMP) && tag->user_data != NULL) dict_add_string(d, "user_data", tag->user_data); if (buf_ffname != NULL) dict_add_string(d, "buf_ffname", buf_ffname); diff --git a/src/version.c b/src/version.c index 2644380c00..30f37349d3 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2116, /**/ 2115, /**/ -- 2.47.3