# HG changeset patch # User Christian Brabandt # Date 1466196308 -7200 # Node ID f2e534fdbe65921512b497788e1a9d49199e7668 # Parent 3bca76f5e3a7ba8cd49133c41e869a7e31e30d7d commit https://github.com/vim/vim/commit/678e480529bce7ba3c09e71233249e3b56531b24 Author: Bram Moolenaar Date: Fri Jun 17 22:38:46 2016 +0200 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 --- a/src/mark.c +++ b/src/mark.c @@ -1522,12 +1522,10 @@ handle_viminfo_mark(garray_T *values, in ++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 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1943, +/**/ 1942, /**/ 1941,