commit | 180246cfd1a5842c538fa8a4a0b520f1d95c90c7 | [log] [tgz] |
---|---|---|
author | zeertzjq <zeertzjq@outlook.com> | Thu Jun 23 12:04:46 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jun 23 12:04:46 2022 +0100 |
tree | 5e4a2a2cac5e86b7a51130a4c2f8da433640e44a | |
parent | 8eba2bd291b347e3008aa9e565652d51ad638cfa [diff] [blame] |
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)
diff --git a/src/evalfunc.c b/src/evalfunc.c index b7d7643..39706cd 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c
@@ -8543,6 +8543,9 @@ if (!do_skip) break; } + + // clear the start flag to avoid getting stuck here + options &= ~SEARCH_START; } if (subpatnum != FAIL)