Patch 7.4.1943
Problem: Coverity warns for unreachable code.
Solution: Remove the code that won't do anything.
Files: src/mark.c
*** ../vim-7.4.1942/src/mark.c 2016-06-15 21:44:47.645388277 +0200
--- src/mark.c 2016-06-17 22:34:50.606676980 +0200
***************
*** 1522,1533 ****
++idx;
break;
}
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 */
--- 1522,1531 ----
++idx;
break;
}
+ /* idx cannot be zero now */
if (idx < 0 && curwin->w_jumplistlen < JUMPLISTSIZE)
/* insert as the oldest entry */
idx = 0;
}
else if (curwin->w_jumplistlen < JUMPLISTSIZE)
/* insert as oldest entry */
*** ../vim-7.4.1942/src/version.c 2016-06-17 13:18:44.471431927 +0200
--- src/version.c 2016-06-17 22:35:47.866056642 +0200
***************
*** 755,756 ****
--- 755,758 ----
{ /* Add new patch number below this line */
+ /**/
+ 1943,
/**/
--
hundred-and-one symptoms of being an internet addict:
103. When you find yourself in the "Computer" section of Barnes & Noble
enjoying yourself.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.