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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user