summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-07-17 19:22:13 +0200
committerBram Moolenaar <Bram@vim.org>2013-07-17 19:22:13 +0200
commitde9149ef188b02b86d42a787d25583501f604cba (patch)
treee868bc1836c9f832c801ceaeeea96b7cc5437ca3 /src/search.c
parent4a3aef7b2837a6f8390b36ac49e5c01b4e90e2d1 (diff)
downloadvim-git-de9149ef188b02b86d42a787d25583501f604cba.tar.gz
updated for version 7.4a.031v7.4a.031
Problem: Compiler warnings. (Charles Campbell) Solution: Initialize variables even when not needed.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index b3ff18fa8..23dc27ea8 100644
--- a/src/search.c
+++ b/src/search.c
@@ -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;