forked from aniani/vim
patch 8.2.0502: Vim9: some code is not tested
Problem: Vim9: some code is not tested. Solution: Add more tests. Fix uncovered problems.
This commit is contained in:
@@ -3530,7 +3530,7 @@ jumpto_tag(
|
||||
*/
|
||||
str = pbuf;
|
||||
if (pbuf[0] == '/' || pbuf[0] == '?')
|
||||
str = skip_regexp(pbuf + 1, pbuf[0], FALSE, NULL) + 1;
|
||||
str = skip_regexp(pbuf + 1, pbuf[0], FALSE) + 1;
|
||||
if (str > pbuf_end - 1) // search command with nothing following
|
||||
{
|
||||
save_p_ws = p_ws;
|
||||
@@ -3820,7 +3820,7 @@ find_extra(char_u **pp)
|
||||
str = skipdigits(str);
|
||||
else if (*str == '/' || *str == '?')
|
||||
{
|
||||
str = skip_regexp(str + 1, *str, FALSE, NULL);
|
||||
str = skip_regexp(str + 1, *str, FALSE);
|
||||
if (*str != first_char)
|
||||
str = NULL;
|
||||
else
|
||||
|
Reference in New Issue
Block a user