comparison 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
comparison
equal deleted inserted replaced
6918:2def7b25de60 6919:dd094497f9fa
5700 g_cmd = 0; 5700 g_cmd = 0;
5701 } 5701 }
5702 /* reset */ 5702 /* reset */
5703 subtract = FALSE; 5703 subtract = FALSE;
5704 negative = FALSE; 5704 negative = FALSE;
5705 if (visual && VIsual_mode != Ctrl_V) 5705 if (visual && VIsual_mode == Ctrl_V)
5706 col = startcol;
5707 else
5706 col = 0; 5708 col = 0;
5707 else
5708 col = startcol;
5709 Prenum1 += offset; 5709 Prenum1 += offset;
5710 curwin->w_set_curswant = TRUE; 5710 curwin->w_set_curswant = TRUE;
5711 #ifdef FEAT_RIGHTLEFT 5711 #ifdef FEAT_RIGHTLEFT
5712 ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE); 5712 ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE);
5713 RLADDSUBFIX(ptr); 5713 RLADDSUBFIX(ptr);