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:
@@ -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 */
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user