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

Problem:    search() gets stuck with "c" and skip evaluates to true.
Solution:   Reset the SEARCH_START option. (closes vim/vim#10608)
180246cfd1
This commit is contained in:
zeertzjq
2022-06-23 19:34:43 +08:00
committed by GitHub
parent a3ce03bef1
commit 84de4d8655
2 changed files with 10 additions and 5 deletions

View File

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