diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2020-10-01 04:25:54 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2020-10-01 04:25:54 +0000 |
| commit | b4ed613595432ece6802d09bfabad18e09aa26f3 (patch) | |
| tree | bd2db6b09b756624c1b2babdd12ea05a9dffcdaf /common/mark.c | |
| parent | 7cef6c685d23e4dcdf3f64b0b2ea92151e652db6 (diff) | |
Notes
Diffstat (limited to 'common/mark.c')
| -rw-r--r-- | common/mark.c | 3 |
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: /* |
