Mercurial > vim
diff src/ops.c @ 6919:dd094497f9fa v7.4.778
patch 7.4.778
Problem: Coverity warns for uninitialized variable.
Solution: Change condition of assignment.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 10 Jul 2015 22:38:00 +0200 |
parents | f9876721bedc |
children | 1f78058351a6 |
line wrap: on
line diff
--- 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) + if (visual && VIsual_mode == Ctrl_V) + col = startcol; + else col = 0; - else - col = startcol; Prenum1 += offset; curwin->w_set_curswant = TRUE; #ifdef FEAT_RIGHTLEFT