aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index f15205349b..f8e07a471f 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -5155,6 +5155,7 @@ chk_modeline(
const int secure_save = secure;
const sctx_T save_current_sctx = current_sctx;
current_sctx.sc_sid = SID_MODELINE;
+ current_sctx.sc_seq = 0;
current_sctx.sc_lnum = 0;
// Make sure no risky things are executed as a side effect.
secure = 1;