diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-05-29 21:37:50 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-05-29 21:37:50 +0000 |
commit | 22ad397d75fb30640f9f10ea37e1a11e295a8bc7 (patch) | |
tree | fa6eea65d5289ffa48c97ac7627bf4e0cda8b0ae /usr.bin/mg | |
parent | b801f8095a1015c391b55d8cbfe87eb929f3c259 (diff) |
Try to undo crazy Quebecois stuff that was breaking undo
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/undo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mg/undo.c b/usr.bin/mg/undo.c index af2dd8b06ed..3630f3f5354 100644 --- a/usr.bin/mg/undo.c +++ b/usr.bin/mg/undo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: undo.c,v 1.26 2005/04/29 07:22:38 otto Exp $ */ +/* $OpenBSD: undo.c,v 1.27 2005/05/29 21:37:49 cloder Exp $ */ /* * Copyright (c) 2002 Vincent Labrecque <vincent@openbsd.org> * All rights reserved. @@ -235,8 +235,7 @@ undo_add_insert(LINE *lp, int offset, int size) memmove(&rec->region, ®, sizeof(REGION)); rec->content = NULL; - if (lastrectype() != INSERT) - undo_add_boundary(); + undo_add_boundary(); LIST_INSERT_HEAD(&curwp->w_undo, rec, next); |