Patch 9.0.0953 (after 9.0.0951)
Problem: Part of making search more efficient is missing.
Solution: Add the change in searchit().
Files: src/search.c
*** ../vim-9.0.0952/src/search.c 2022-11-25 21:13:43.183753030 +0000
--- src/search.c 2022-11-26 11:08:37.825152789 +0000
***************
*** 793,799 ****
if (dir == FORWARD && at_first_line)
{
match_ok = TRUE;
- matchcol = col;
/*
* When the match starts in a next line it's certainly
--- 793,798 ----
***************
*** 840,847 ****
else
{
// Advance "matchcol" to the next character.
! // This does not use matchpos.col, because
! // "\zs" may have have set it.
if (ptr[matchcol] != NUL)
{
if (has_mbyte)
--- 839,847 ----
else
{
// Advance "matchcol" to the next character.
! // This uses rmm_matchcol, the actual start of
! // the match, ignoring "\zs".
! matchcol = regmatch.rmm_matchcol;
if (ptr[matchcol] != NUL)
{
if (has_mbyte)
*** ../vim-9.0.0952/src/version.c 2022-11-26 13:03:16.607914472 +0000
--- src/version.c 2022-11-26 13:37:47.507776136 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 953,
/**/
--
You are not really successful until someone claims he sat
beside you in school.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///