Skip to content

Commit ab55f11

Browse files
committed
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 #7740)
1 parent c05fe07 commit ab55f11

2 files changed

Lines changed: 2 additions & 21 deletions

File tree

src/mark.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ setpcmark(void)
140140
int i;
141141
xfmark_T *fm;
142142
#endif
143-
#ifdef JUMPLIST_ROTATE
144-
xfmark_T tempmark;
145-
#endif
146143

147144
// for :global the mark is set only once
148145
if (global_busy || listcmd_busy || (cmdmod.cmod_flags & CMOD_KEEPJUMPS))
@@ -152,24 +149,6 @@ setpcmark(void)
152149
curwin->w_pcmark = curwin->w_cursor;
153150

154151
#ifdef FEAT_JUMPLIST
155-
# ifdef JUMPLIST_ROTATE
156-
/*
157-
* If last used entry is not at the top, put it at the top by rotating
158-
* the stack until it is (the newer entries will be at the bottom).
159-
* Keep one entry (the last used one) at the top.
160-
*/
161-
if (curwin->w_jumplistidx < curwin->w_jumplistlen)
162-
++curwin->w_jumplistidx;
163-
while (curwin->w_jumplistidx < curwin->w_jumplistlen)
164-
{
165-
tempmark = curwin->w_jumplist[curwin->w_jumplistlen - 1];
166-
for (i = curwin->w_jumplistlen - 1; i > 0; --i)
167-
curwin->w_jumplist[i] = curwin->w_jumplist[i - 1];
168-
curwin->w_jumplist[0] = tempmark;
169-
++curwin->w_jumplistidx;
170-
}
171-
# endif
172-
173152
// If jumplist is full: remove oldest entry
174153
if (++curwin->w_jumplistlen > JUMPLISTSIZE)
175154
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2407,
753755
/**/
754756
2406,
755757
/**/

0 commit comments

Comments
 (0)