summaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-05-21 17:19:58 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-21 17:19:58 +0200
commit42cd192daa4b7f29131c7be1beaecb6067e96266 (patch)
treec7538612398bd6b69d76bec143a2fdf507082968 /src/tag.c
parentffed1540f36eb4a2255d7d824c9466d3d8fd581e (diff)
patch 9.1.0428: Tag guessing leaves wrong search history with very short namesv9.1.0428
Problem: Tag guessing leaves wrong search history with very short names (after 9.1.0426). Solution: Use the correct variable for pattern length (zeertzjq). closes: #14817 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tag.c b/src/tag.c
index 87ff802c74..d406fdec1a 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -3945,7 +3945,7 @@ jumpto_tag(
// Guess again: "^char * \<func ("
pbuflen = vim_snprintf((char *)pbuf, LSIZE, "^\\[#a-zA-Z_]\\.\\*\\<%s\\s\\*(",
tagp.tagname);
- if (!do_search(NULL, '/', '/', pbuf, len, (long)1,
+ if (!do_search(NULL, '/', '/', pbuf, pbuflen, (long)1,
search_options, NULL))
found = 0;
}