summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index 3d5b6d817..b7f3dd4f5 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -7552,6 +7552,7 @@ nv_gomark(cap)
#endif
#ifdef FEAT_FOLDING
if (cap->oap->op_type == OP_NOP
+ && pos != NULL
&& (pos == (pos_T *)-1 || !equalpos(old_cursor, *pos))
&& (fdo_flags & FDO_MARK)
&& old_KeyTyped)