From 18e00d2c86e609101ef8ae637991c6a29bdb511c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 18 May 2012 12:49:40 +0200 Subject: updated for version 7.3.517 Problem: Crash when using "vipvv". (Alexandre Provencio) Solution: Don't let the text length become negative. --- src/ops.c | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ops.c b/src/ops.c index bccac7790..bc2860a0d 100644 --- 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 index 5b4bbfc3e..0f40176e0 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 517, /**/ 516, /**/ -- cgit v1.2.3