]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1762 v7.4.1762
authorBram Moolenaar <Bram@vim.org>
Thu, 21 Apr 2016 07:07:01 +0000 (09:07 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 21 Apr 2016 07:07:01 +0000 (09:07 +0200)
Problem:    Coverity: useless assignments.
Solution:   Remove them.

src/search.c
src/version.c

index 23cb2911ed94612ed71aef99dd78623c9eae6b2d..5fc6820320973c60d0c490173ca64e7f7c13624c 100644 (file)
@@ -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);
index 63dedd72de4d3f425d151282d7c0425d638adb2c..9cbce20b9419fe1040086caaa827fb799cb7909d 100644 (file)
@@ -748,6 +748,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1762,
 /**/
     1761,
 /**/