]> granicus.if.org Git - vim/commitdiff
patch 7.4.1943 v7.4.1943
authorBram Moolenaar <Bram@vim.org>
Fri, 17 Jun 2016 20:38:46 +0000 (22:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 17 Jun 2016 20:38:46 +0000 (22:38 +0200)
Problem:    Coverity warns for unreachable code.
Solution:   Remove the code that won't do anything.

src/mark.c
src/version.c

index 72a9a923c34a5ad12a6460a6d31f7b6cd3f270bf..264124f59e199a3e29923adf23cb5db3d0ea3968 100644 (file)
@@ -1522,12 +1522,10 @@ handle_viminfo_mark(garray_T *values, int force)
                        ++idx;
                        break;
                    }
+               /* idx cannot be zero now */
                if (idx < 0 && curwin->w_jumplistlen < JUMPLISTSIZE)
                    /* insert as the oldest entry */
                    idx = 0;
-               else if (idx == 0 && curwin->w_jumplistlen == JUMPLISTSIZE)
-                   /* no space to insert as the oldest entry */
-                   idx = -1;
            }
            else if (curwin->w_jumplistlen < JUMPLISTSIZE)
                /* insert as oldest entry */
index 3f41a9e0a7a3b39f6b5d547dbe1d36a9f4841168..52097f674d455ab51948fe5e5eb52deed8ee5e6d 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1943,
 /**/
     1942,
 /**/