From: Bram Moolenaar Date: Fri, 10 Jul 2015 20:38:00 +0000 (+0200) Subject: patch 7.4.778 X-Git-Tag: v7.4.778 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae2fe73abc954b8fd3dbd7994daa8e31e6690bd0;p=thirdparty%2Fvim.git patch 7.4.778 Problem: Coverity warns for uninitialized variable. Solution: Change condition of assignment. --- diff --git a/src/ops.c b/src/ops.c index e4d26006b7..8752477e39 100644 --- a/src/ops.c +++ b/src/ops.c @@ -5702,10 +5702,10 @@ do_addsub(command, Prenum1, g_cmd) /* reset */ subtract = FALSE; negative = FALSE; - if (visual && VIsual_mode != Ctrl_V) - col = 0; - else + if (visual && VIsual_mode == Ctrl_V) col = startcol; + else + col = 0; Prenum1 += offset; curwin->w_set_curswant = TRUE; #ifdef FEAT_RIGHTLEFT diff --git a/src/version.c b/src/version.c index df00f5bcfb..016b25c1d6 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 778, /**/ 777, /**/