aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/mark.c')
-rw-r--r--src/nvim/mark.c5
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;
}