diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-21 09:07:01 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-21 09:07:01 +0200 |
commit | 268a06ce901d2c780304e0395028e3c2f60ec755 (patch) | |
tree | aed1766dbb486c9472f8c102113cb92eeb6b3197 /src/search.c | |
parent | 8ed43916dbea4ccedcc84d271e292abbf658b9c5 (diff) | |
download | vim-268a06ce901d2c780304e0395028e3c2f60ec755.zip |
patch 7.4.1762
Problem: Coverity: useless assignments.
Solution: Remove them.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c index 23cb2911e..5fc682032 100644 --- a/src/search.c +++ b/src/search.c @@ -4594,7 +4594,6 @@ current_search( orig_pos = curwin->w_cursor; pos = curwin->w_cursor; - start_pos = VIsual; /* make sure, searching further will extend the match */ if (VIsual_active) @@ -4606,7 +4605,7 @@ current_search( } } else - orig_pos = pos = start_pos = curwin->w_cursor; + orig_pos = pos = curwin->w_cursor; /* Is the pattern is zero-width? */ one_char = is_one_char(spats[last_idx].pat, TRUE); |