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)
&& 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;
:set selection=exclusive
$cgNmongoose\e/i
cgnj\e
+:" Make sure there is no other match y uppercase.
+/\16x59
+gggnd
:/^start:/,/^end:/wq! test.out
ENDTEST
uniquepattern uniquepattern
my very excellent mother just served us nachos
for (i=0; i<=10; i++)
+Y
+text
+Y
end:
uniquepattern
my very excellent mongoose just served us nachos
for (j=0; i<=10; i++)
+
+text
+Y
end:
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 50,
/**/
49,
/**/