mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
shada: Allow moving jump index past the end
idx == len + 1 indicates that no jumplist entry is currently used.
This commit is contained in:
parent
17c69258a7
commit
1889ee329f
@ -1493,7 +1493,7 @@ static void shada_read(ShaDaReadDef *const sd_reader, const int flags)
|
|||||||
#define SDE_TO_XFMARK(entry) fm
|
#define SDE_TO_XFMARK(entry) fm
|
||||||
#define ADJUST_IDX(i) \
|
#define ADJUST_IDX(i) \
|
||||||
if (curwin->w_jumplistidx >= i \
|
if (curwin->w_jumplistidx >= i \
|
||||||
&& curwin->w_jumplistidx + 1 < curwin->w_jumplistlen) { \
|
&& curwin->w_jumplistidx + 1 <= curwin->w_jumplistlen) { \
|
||||||
curwin->w_jumplistidx++; \
|
curwin->w_jumplistidx++; \
|
||||||
}
|
}
|
||||||
#define DUMMY_AFTERFREE(entry)
|
#define DUMMY_AFTERFREE(entry)
|
||||||
|
Loading…
Reference in New Issue
Block a user