# HG changeset patch # User Bram Moolenaar # Date 1337338180 -7200 # Node ID 9a1dba1f969ac4cb2477626cd79a7a6b0bea1894 # Parent 5598c71c06a0df65d683905bba99ebb5c11b30b6 updated for version 7.3.517 Problem: Crash when using "vipvv". (Alexandre Provencio) Solution: Don't let the text length become negative. diff --git a/src/ops.c b/src/ops.c --- a/src/ops.c +++ b/src/ops.c @@ -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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 517, +/**/ 516, /**/ 515,