patch 9.1.0428: Tag guessing leaves wrong search history with very short names
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>
This commit is contained in:
committed by
Christian Brabandt
parent
ffed1540f3
commit
42cd192daa
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user