diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-07-10 22:38:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-07-10 22:38:00 +0200 |
commit | ae2fe73abc954b8fd3dbd7994daa8e31e6690bd0 (patch) | |
tree | f7ee05639b2f71060345dbca8a302c3162e6ac34 | |
parent | 86ae720d7567fcbbe40f00cf136c797953f21038 (diff) | |
download | vim-ae2fe73abc954b8fd3dbd7994daa8e31e6690bd0.zip |
patch 7.4.778
Problem: Coverity warns for uninitialized variable.
Solution: Change condition of assignment.
-rw-r--r-- | src/ops.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -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 df00f5bcf..016b25c1d 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 778, +/**/ 777, /**/ 776, |