1
0
forked from aniani/vim

updated for version 7.4.050

Problem:    "gn" selects too much for the pattern "\d" when there are two
            lines with a single digit. (Ryan Carney)
Solution:   Adjust the logic of is_one_char(). (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2013-10-02 21:55:02 +02:00
parent 3eead7c227
commit 4c7cb6b884
4 changed files with 13 additions and 2 deletions

View File

@@ -4680,8 +4680,8 @@ is_one_char(pattern)
&& regmatch.startpos[0].lnum == regmatch.endpos[0].lnum
&& regmatch.startpos[0].col == regmatch.endpos[0].col);
if (!result && incl(&pos) == 0 && pos.col == regmatch.endpos[0].col)
result = TRUE;
if (!result && inc(&pos) >= 0 && pos.col == regmatch.endpos[0].col)
result = TRUE;
}
called_emsg |= save_called_emsg;