1
0
forked from aniani/vim

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;
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 */