forked from aniani/vim
patch 9.0.0953: part of making search more efficient is missing
Problem: Part of making search more efficient is missing. Solution: Add the change in searchit().
This commit is contained in:
@@ -793,7 +793,6 @@ searchit(
|
|||||||
if (dir == FORWARD && at_first_line)
|
if (dir == FORWARD && at_first_line)
|
||||||
{
|
{
|
||||||
match_ok = TRUE;
|
match_ok = TRUE;
|
||||||
matchcol = col;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When the match starts in a next line it's certainly
|
* When the match starts in a next line it's certainly
|
||||||
@@ -840,8 +839,9 @@ searchit(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Advance "matchcol" to the next character.
|
// Advance "matchcol" to the next character.
|
||||||
// This does not use matchpos.col, because
|
// This uses rmm_matchcol, the actual start of
|
||||||
// "\zs" may have have set it.
|
// the match, ignoring "\zs".
|
||||||
|
matchcol = regmatch.rmm_matchcol;
|
||||||
if (ptr[matchcol] != NUL)
|
if (ptr[matchcol] != NUL)
|
||||||
{
|
{
|
||||||
if (has_mbyte)
|
if (has_mbyte)
|
||||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
953,
|
||||||
/**/
|
/**/
|
||||||
952,
|
952,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user