aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Bürgin <676c7473@gmail.com>2015-04-08 18:09:31 +0200
committerJustin M. Keyes <justinkz@gmail.com>2015-04-09 11:21:51 -0400
commit42af7daa25acff253b663db9da5859f6c7aaaa56 (patch)
tree3ec0b32378b32b7155eee3d9025c998e9cfb8b8c /src
parent4a7364c807a5ff03e7e4fd94549bc64a00f6ea99 (diff)
downloadrneovim-42af7daa25acff253b663db9da5859f6c7aaaa56.tar.gz
rneovim-42af7daa25acff253b663db9da5859f6c7aaaa56.tar.bz2
rneovim-42af7daa25acff253b663db9da5859f6c7aaaa56.zip
mark.c: Remove JUMPLIST_ROTATE #2376
JUMPLIST_ROTATE is never defined, and the feature is not popular.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/mark.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/nvim/mark.c b/src/nvim/mark.c
index 2737380a8e..bc4eaa5b60 100644
--- a/src/nvim/mark.c
+++ b/src/nvim/mark.c
@@ -146,9 +146,6 @@ void setpcmark(void)
{
int i;
xfmark_T *fm;
-#ifdef JUMPLIST_ROTATE
- xfmark_T tempmark;
-#endif
/* for :global the mark is set only once */
if (global_busy || listcmd_busy || cmdmod.keepjumps)
@@ -157,23 +154,6 @@ void setpcmark(void)
curwin->w_prev_pcmark = curwin->w_pcmark;
curwin->w_pcmark = curwin->w_cursor;
-# 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) {
curwin->w_jumplistlen = JUMPLISTSIZE;