From: Bram Moolenaar Date: Fri, 17 Jun 2016 20:38:46 +0000 (+0200) Subject: patch 7.4.1943 X-Git-Tag: v7.4.1943 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=678e480529bce7ba3c09e71233249e3b56531b24;p=vim patch 7.4.1943 Problem: Coverity warns for unreachable code. Solution: Remove the code that won't do anything. --- diff --git a/src/mark.c b/src/mark.c index 72a9a923c..264124f59 100644 --- a/src/mark.c +++ b/src/mark.c @@ -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 */ diff --git a/src/version.c b/src/version.c index 3f41a9e0a..52097f674 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1943, /**/ 1942, /**/