1
0
forked from aniani/vim

patch 8.2.5152: search() gets stuck with "c" and skip evaluates to true

Problem:    search() gets stuck with "c" and skip evaluates to true.
Solution:   Reset the SEARCH_START option. (closes #10608)
This commit is contained in:
zeertzjq
2022-06-23 12:04:46 +01:00
committed by Bram Moolenaar
parent 8eba2bd291
commit 180246cfd1
3 changed files with 12 additions and 5 deletions

View File

@@ -8543,6 +8543,9 @@ search_cmn(typval_T *argvars, pos_T *match_pos, int *flagsp)
if (!do_skip)
break;
}
// clear the start flag to avoid getting stuck here
options &= ~SEARCH_START;
}
if (subpatnum != FAIL)