summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-05-29 21:37:50 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-05-29 21:37:50 +0000
commit22ad397d75fb30640f9f10ea37e1a11e295a8bc7 (patch)
treefa6eea65d5289ffa48c97ac7627bf4e0cda8b0ae /usr.bin/mg
parentb801f8095a1015c391b55d8cbfe87eb929f3c259 (diff)
Try to undo crazy Quebecois stuff that was breaking undo
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/undo.c5
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, &reg, sizeof(REGION));
rec->content = NULL;
- if (lastrectype() != INSERT)
- undo_add_boundary();
+ undo_add_boundary();
LIST_INSERT_HEAD(&curwp->w_undo, rec, next);