Mercurial > vim
changeset 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 | 2def7b25de60 |
children | 6cbb3af8ccf4 |
files | src/ops.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
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