shada: Allow moving jump index past the end

idx == len + 1 indicates that no jumplist entry is currently used.
This commit is contained in:
ZyX 2015-08-13 20:25:54 +03:00
parent 17c69258a7
commit 1889ee329f

View File

@ -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)