comparison src/evalfunc.c @ 29267:f27ec19f2034 v8.2.5152

patch 8.2.5152: search() gets stuck with "c" and skip evaluates to true Commit: https://github.com/vim/vim/commit/180246cfd1a5842c538fa8a4a0b520f1d95c90c7 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Jun 23 12:04:46 2022 +0100 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 https://github.com/vim/vim/issues/10608)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jun 2022 13:15:04 +0200
parents d1e263ecf634
children fb375f0c6ea7
comparison
equal deleted inserted replaced
29266:4a30a1116b92 29267:f27ec19f2034
8541 break; 8541 break;
8542 } 8542 }
8543 if (!do_skip) 8543 if (!do_skip)
8544 break; 8544 break;
8545 } 8545 }
8546
8547 // clear the start flag to avoid getting stuck here
8548 options &= ~SEARCH_START;
8546 } 8549 }
8547 8550
8548 if (subpatnum != FAIL) 8551 if (subpatnum != FAIL)
8549 { 8552 {
8550 if (flags & SP_SUBPAT) 8553 if (flags & SP_SUBPAT)