comparison src/mark.c @ 9322:f2e534fdbe65 v7.4.1943

commit https://github.com/vim/vim/commit/678e480529bce7ba3c09e71233249e3b56531b24 Author: Bram Moolenaar <Bram@vim.org> 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.
author Christian Brabandt <cb@256bit.org>
date Fri, 17 Jun 2016 22:45:08 +0200
parents c0760b25f31d
children 160cb082819e
comparison
equal deleted inserted replaced
9321:3bca76f5e3a7 9322:f2e534fdbe65
1520 if (curwin->w_jumplist[idx].time_set < timestamp) 1520 if (curwin->w_jumplist[idx].time_set < timestamp)
1521 { 1521 {
1522 ++idx; 1522 ++idx;
1523 break; 1523 break;
1524 } 1524 }
1525 /* idx cannot be zero now */
1525 if (idx < 0 && curwin->w_jumplistlen < JUMPLISTSIZE) 1526 if (idx < 0 && curwin->w_jumplistlen < JUMPLISTSIZE)
1526 /* insert as the oldest entry */ 1527 /* insert as the oldest entry */
1527 idx = 0; 1528 idx = 0;
1528 else if (idx == 0 && curwin->w_jumplistlen == JUMPLISTSIZE)
1529 /* no space to insert as the oldest entry */
1530 idx = -1;
1531 } 1529 }
1532 else if (curwin->w_jumplistlen < JUMPLISTSIZE) 1530 else if (curwin->w_jumplistlen < JUMPLISTSIZE)
1533 /* insert as oldest entry */ 1531 /* insert as oldest entry */
1534 idx = 0; 1532 idx = 0;
1535 else 1533 else