aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2015-08-13 20:25:54 +0300
committerZyX <kp-pav@yandex.ru>2015-10-08 22:00:40 +0300
commit1889ee329f98ba5a1a2988c1e0e82c6c2b19e1ad (patch)
treec534d2000515ce85ddc4006b24a809231b3c32d2 /src
parent17c69258a7128ee31fbf294b46599241f8e226cc (diff)
downloadrneovim-1889ee329f98ba5a1a2988c1e0e82c6c2b19e1ad.tar.gz
rneovim-1889ee329f98ba5a1a2988c1e0e82c6c2b19e1ad.tar.bz2
rneovim-1889ee329f98ba5a1a2988c1e0e82c6c2b19e1ad.zip
shada: Allow moving jump index past the end
idx == len + 1 indicates that no jumplist entry is currently used.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/shada.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c
index a9f5d9bc5b..e314c702ad 100644
--- a/src/nvim/shada.c
+++ b/src/nvim/shada.c
@@ -1493,7 +1493,7 @@ static void shada_read(ShaDaReadDef *const sd_reader, const int flags)
#define SDE_TO_XFMARK(entry) fm
#define ADJUST_IDX(i) \
if (curwin->w_jumplistidx >= i \
- && curwin->w_jumplistidx + 1 < curwin->w_jumplistlen) { \
+ && curwin->w_jumplistidx + 1 <= curwin->w_jumplistlen) { \
curwin->w_jumplistidx++; \
}
#define DUMMY_AFTERFREE(entry)