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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20221126185945.9D7E51C0842%40moolenaar.net.