mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.3.517
Problem: Crash when using "vipvv". (Alexandre Provencio) Solution: Don't let the text length become negative.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user