changeset 23731:e949ad96ad7a v8.2.2407

patch 8.2.2407: old jumplist code is never used Commit: https://github.com/vim/vim/commit/ab55f11d9bc776d546794748bc62ac47d5340c2e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 25 18:44:57 2021 +0100 patch 8.2.2407: old jumplist code is never used Problem: Old jumplist code is never used. Solution: Delete the dead code. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7740)
author Bram Moolenaar <Bram@vim.org>
date Mon, 25 Jan 2021 19:00:05 +0100
parents ab57cc57e749
children c47336ebd7cd
files src/mark.c src/version.c
diffstat 2 files changed, 2 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/src/mark.c
+++ b/src/mark.c
@@ -140,9 +140,6 @@ setpcmark(void)
     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))
@@ -152,24 +149,6 @@ setpcmark(void)
     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)
     {
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2407,
+/**/
     2406,
 /**/
     2405,