1
0
forked from aniani/vim

updated for version 7.4a.031

Problem:    Compiler warnings. (Charles Campbell)
Solution:   Initialize variables even when not needed.
This commit is contained in:
Bram Moolenaar
2013-07-17 19:22:13 +02:00
parent 4a3aef7b28
commit de9149ef18
3 changed files with 13 additions and 3 deletions

View File

@@ -4509,7 +4509,7 @@ current_search(count, forward)
int result; /* result of various function calls */
char_u old_p_ws = p_ws;
int flags = 0;
pos_T save_VIsual;
pos_T save_VIsual = VIsual;
int one_char;
/* wrapping should not occur */
@@ -4522,7 +4522,6 @@ current_search(count, forward)
if (VIsual_active)
{
orig_pos = curwin->w_cursor;
save_VIsual = VIsual;
pos = curwin->w_cursor;
start_pos = VIsual;