summaryrefslogtreecommitdiffstats
path: root/src/fold.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fold.c b/src/fold.c
index 229cb2ad2d..f94b38949b 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -1499,7 +1499,7 @@ foldMarkAdjust(
line2 = line1 - amount_after - 1;
// If appending a line in Insert mode, it should be included in the fold
// just above the line.
- if ((State & INSERT) && amount == (linenr_T)1 && line2 == MAXLNUM)
+ if ((State & MODE_INSERT) && amount == (linenr_T)1 && line2 == MAXLNUM)
--line1;
foldMarkAdjustRecurse(&wp->w_folds, line1, line2, amount, amount_after);
}
@@ -1523,7 +1523,7 @@ foldMarkAdjustRecurse(
// In Insert mode an inserted line at the top of a fold is considered part
// of the fold, otherwise it isn't.
- if ((State & INSERT) && amount == (linenr_T)1 && line2 == MAXLNUM)
+ if ((State & MODE_INSERT) && amount == (linenr_T)1 && line2 == MAXLNUM)
top = line1 + 1;
else
top = line1;