diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2025-02-05 23:09:29 +0000 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2025-02-05 23:09:29 +0000 |
commit | d5f194ce780c95821a855aca3c19426576d28ae0 (patch) | |
tree | d45f461b19f9118ad2bb1f440a7a08973ad18832 /src/nvim/mark.c | |
parent | c5d770d311841ea5230426cc4c868e8db27300a8 (diff) | |
parent | 44740e561fc93afe3ebecfd3618bda2d2abeafb0 (diff) | |
download | rneovim-rahm.tar.gz rneovim-rahm.tar.bz2 rneovim-rahm.zip |
Diffstat (limited to 'src/nvim/mark.c')
-rw-r--r-- | src/nvim/mark.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/mark.c b/src/nvim/mark.c index 3dbcbbd47b..d1ad920537 100644 --- a/src/nvim/mark.c +++ b/src/nvim/mark.c @@ -23,7 +23,6 @@ #include "nvim/fold.h" #include "nvim/gettext_defs.h" #include "nvim/globals.h" -#include "nvim/highlight.h" #include "nvim/highlight_defs.h" #include "nvim/mark.h" #include "nvim/mbyte.h" @@ -234,7 +233,7 @@ void setpcmark(void) curwin->w_pcmark.lnum = 1; } - if (jop_flags & JOP_STACK) { + if (jop_flags & kOptJopFlagStack) { // 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) { @@ -1473,7 +1472,7 @@ void cleanup_jumplist(win_T *wp, bool loadfiles) mustfree = false; } else if (i > from + 1) { // non-adjacent duplicate // jumpoptions=stack: remove duplicates only when adjacent. - mustfree = !(jop_flags & JOP_STACK); + mustfree = !(jop_flags & kOptJopFlagStack); } else { // adjacent duplicate mustfree = true; } |