summaryrefslogtreecommitdiff
path: root/src/mark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mark.c b/src/mark.c
index 72a9a923c..264124f59 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -1522,12 +1522,10 @@ handle_viminfo_mark(garray_T *values, int force)
++idx;
break;
}
+ /* idx cannot be zero now */
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 */