diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-01-01 06:30:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-01 06:30:29 -0800 |
commit | 070bd3ea231b6b98c9e9f1057fdbcf31d1877a70 (patch) | |
tree | 93d5aeb26b595e77041a6b2e73b32e8f1015bfc0 /src | |
parent | 99eca048357b8ec72e84b45d21c2a38e25ed6ec0 (diff) | |
parent | ac6ebfcc1db8daf30533c42d5c4246bb95ec3d85 (diff) | |
download | rneovim-070bd3ea231b6b98c9e9f1057fdbcf31d1877a70.tar.gz rneovim-070bd3ea231b6b98c9e9f1057fdbcf31d1877a70.tar.bz2 rneovim-070bd3ea231b6b98c9e9f1057fdbcf31d1877a70.zip |
Merge #11604 "LSP: shrink API, improve docs"
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/mark.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/mark.c b/src/nvim/mark.c index 93bc497cf0..8b2f342142 100644 --- a/src/nvim/mark.c +++ b/src/nvim/mark.c @@ -179,8 +179,8 @@ void setpcmark(void) } if (jop_flags & JOP_STACK) { - // If we're somewhere in the middle of the jumplist discard everything - // after the current index. + // jumpoptions=stack: if we're somewhere in the middle of the jumplist + // discard everything after the current index. if (curwin->w_jumplistidx < curwin->w_jumplistlen - 1) { // Discard the rest of the jumplist by cutting the length down to // contain nothing beyond the current index. @@ -1214,14 +1214,14 @@ void cleanup_jumplist(win_T *wp, bool checktail) break; } } + bool mustfree; - if (i >= wp->w_jumplistlen) { // not duplicate + if (i >= wp->w_jumplistlen) { // not duplicate mustfree = false; - } else if (i > from + 1) { // non-adjacent duplicate - // When the jump options include "stack", duplicates are only removed from - // the jumplist when they are adjacent. + } else if (i > from + 1) { // non-adjacent duplicate + // jumpoptions=stack: remove duplicates only when adjacent. mustfree = !(jop_flags & JOP_STACK); - } else { // adjacent duplicate + } else { // adjacent duplicate mustfree = true; } |