aboutsummaryrefslogtreecommitdiffstats
path: root/common/mark.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/mark.c')
-rw-r--r--common/mark.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/mark.c b/common/mark.c
index 9af4612cb22a..86e3cb8ea6d9 100644
--- a/common/mark.c
+++ b/common/mark.c
@@ -216,12 +216,13 @@ mark_insdel(SCR *sp, lnop_t op, recno_t lno)
abort();
case LINE_DELETE:
SLIST_FOREACH(lmp, sp->ep->marks, q)
- if (lmp->lno >= lno)
+ if (lmp->lno >= lno) {
if (lmp->lno == lno) {
F_SET(lmp, MARK_DELETED);
(void)log_mark(sp, lmp);
} else
--lmp->lno;
+ }
break;
case LINE_INSERT:
/*