]> granicus.if.org Git - vim/commitdiff
patch 7.4.778 v7.4.778
authorBram Moolenaar <Bram@vim.org>
Fri, 10 Jul 2015 20:38:00 +0000 (22:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 10 Jul 2015 20:38:00 +0000 (22:38 +0200)
Problem:    Coverity warns for uninitialized variable.
Solution:   Change condition of assignment.

src/ops.c
src/version.c

index e4d26006b73fd971aca0c7f2f4f4bcd0e6d8b98d..8752477e39374e5c3c4b95f8b09b6cb506b767f8 100644 (file)
--- 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
index df00f5bcfbf755d0e78372434f2f8864dcb232c8..016b25c1d66e20a299bdcf0d141a0f4962859899 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    778,
 /**/
     777,
 /**/