diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-07-01 03:42:03 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-27 16:36:57 +0200 |
commit | 411a06c8b6e92ead6a14d407d7ca61a44fba5bb6 (patch) | |
tree | 68d5923d5ae5ff0e69107ab5f841ecfa76b8bbc8 /src/nvim/mark.c | |
parent | 997601d966dcc7b10c11eaae9c31bce2441c86da (diff) | |
download | rneovim-411a06c8b6e92ead6a14d407d7ca61a44fba5bb6.tar.gz rneovim-411a06c8b6e92ead6a14d407d7ca61a44fba5bb6.tar.bz2 rneovim-411a06c8b6e92ead6a14d407d7ca61a44fba5bb6.zip |
API: Context
Diffstat (limited to 'src/nvim/mark.c')
-rw-r--r-- | src/nvim/mark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/mark.c b/src/nvim/mark.c index 3736004527..9f357575d0 100644 --- a/src/nvim/mark.c +++ b/src/nvim/mark.c @@ -1213,8 +1213,8 @@ void cleanup_jumplist(win_T *wp, bool loadfiles) // When pointer is below last jump, remove the jump if it matches the current // line. This avoids useless/phantom jumps. #9805 - if (wp->w_jumplistlen - && wp->w_jumplistidx == wp->w_jumplistlen) { + if (loadfiles // otherwise (i.e.: Shada), last entry should be kept + && wp->w_jumplistlen && wp->w_jumplistidx == wp->w_jumplistlen) { const xfmark_T *fm_last = &wp->w_jumplist[wp->w_jumplistlen - 1]; if (fm_last->fmark.fnum == curbuf->b_fnum && fm_last->fmark.mark.lnum == wp->w_cursor.lnum) { |