0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 7.4.1943

Problem:    Coverity warns for unreachable code.
Solution:   Remove the code that won't do anything.
This commit is contained in:
Bram Moolenaar
2016-06-17 22:38:46 +02:00
parent d18f672fc9
commit 678e480529
2 changed files with 3 additions and 3 deletions

View File

@@ -1522,12 +1522,10 @@ handle_viminfo_mark(garray_T *values, int force)
++idx; ++idx;
break; break;
} }
/* idx cannot be zero now */
if (idx < 0 && curwin->w_jumplistlen < JUMPLISTSIZE) if (idx < 0 && curwin->w_jumplistlen < JUMPLISTSIZE)
/* insert as the oldest entry */ /* insert as the oldest entry */
idx = 0; 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) else if (curwin->w_jumplistlen < JUMPLISTSIZE)
/* insert as oldest entry */ /* insert as oldest entry */

View File

@@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1943,
/**/ /**/
1942, 1942,
/**/ /**/