Patch 8.2.2407
Problem: Old jumplist code is never used.
Solution: Delete the dead code. (Yegappan Lakshmanan, closes #7740)
Files: src/mark.c
*** ../vim-8.2.2406/src/mark.c 2020-10-24 20:49:37.498683038 +0200
--- src/mark.c 2021-01-25 18:43:44.765831428 +0100
***************
*** 140,148 ****
int i;
xfmark_T *fm;
#endif
- #ifdef JUMPLIST_ROTATE
- xfmark_T tempmark;
- #endif
// for :global the mark is set only once
if (global_busy || listcmd_busy || (cmdmod.cmod_flags & CMOD_KEEPJUMPS))
--- 140,145 ----
***************
*** 152,175 ****
curwin->w_pcmark = curwin->w_cursor;
#ifdef FEAT_JUMPLIST
- # ifdef JUMPLIST_ROTATE
- /*
- * If last used entry is not at the top, put it at the top by rotating
- * the stack until it is (the newer entries will be at the bottom).
- * Keep one entry (the last used one) at the top.
- */
- if (curwin->w_jumplistidx < curwin->w_jumplistlen)
- ++curwin->w_jumplistidx;
- while (curwin->w_jumplistidx < curwin->w_jumplistlen)
- {
- tempmark = curwin->w_jumplist[curwin->w_jumplistlen - 1];
- for (i = curwin->w_jumplistlen - 1; i > 0; --i)
- curwin->w_jumplist[i] = curwin->w_jumplist[i - 1];
- curwin->w_jumplist[0] = tempmark;
- ++curwin->w_jumplistidx;
- }
- # endif
-
// If jumplist is full: remove oldest entry
if (++curwin->w_jumplistlen > JUMPLISTSIZE)
{
--- 149,154 ----
*** ../vim-8.2.2406/src/version.c 2021-01-24 21:30:45.214803823 +0100
--- src/version.c 2021-01-25 18:44:22.369728620 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2407,
/**/
--
You are Dead. Do you wish to restart, load, or quit?
/// Bram Moolenaar -- Br...@Moolenaar.net --
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 ///