Skip to content
Snippets Groups Projects
Commit 18e00d2c authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

updated for version 7.3.517

Problem:    Crash when using "vipvv". (Alexandre Provencio)
Solution:   Don't let the text length become negative.
parent 2fc8802f
No related branches found
Tags v7.3.517
No related merge requests found
......@@ -3042,6 +3042,8 @@ op_yank(oap, deleting, mess)
}
#endif
}
if (endcol == MAXCOL)
endcol = (colnr_T)STRLEN(p);
if (startcol > endcol
#ifdef FEAT_VIRTUALEDIT
|| is_oneChar
......@@ -3050,8 +3052,6 @@ op_yank(oap, deleting, mess)
bd.textlen = 0;
else
{
if (endcol == MAXCOL)
endcol = (colnr_T)STRLEN(p);
bd.textlen = endcol - startcol + oap->inclusive;
}
bd.textstart = p + startcol;
......
......@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
517,
/**/
516,
/**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment