diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-06-17 22:38:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-06-17 22:38:46 +0200 |
commit | 678e480529bce7ba3c09e71233249e3b56531b24 (patch) | |
tree | ef770cd03f7594ff4ad487ad46765e90a2c7b81f /src | |
parent | d18f672fc9477f3c0cb7cc4ce8d9237ed825c612 (diff) |
patch 7.4.1943v7.4.1943
Problem: Coverity warns for unreachable code.
Solution: Remove the code that won't do anything.
Diffstat (limited to 'src')
-rw-r--r-- | src/mark.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mark.c b/src/mark.c index 72a9a923c3..264124f59e 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 3f41a9e0a7..52097f674d 100644 --- 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, |