summaryrefslogtreecommitdiff
path: root/usr.bin/mg/line.c
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2006-11-17 08:45:32 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2006-11-17 08:45:32 +0000
commit78604d2745675cfadeb29e2681177ec9ec7a86b5 (patch)
treecb5fcc65baec512e18c4e85fcd32fcb904dcefe1 /usr.bin/mg/line.c
parent0029518af75b3a4e9416fd5a0f0b804e947f59a7 (diff)
Fix a needless inversion of flag names; i.e. change them from the
negative to the positive. undo_boundary_enable(TRUE) makes a LOT more sense than undo_no_boundary(FALSE). While here, whack a global, and fix a bug noted by otto: undoing a file insertion sometimes left stray characters around. ok beck@, otto@
Diffstat (limited to 'usr.bin/mg/line.c')
-rw-r--r--usr.bin/mg/line.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/line.c b/usr.bin/mg/line.c
index 4710c57d8e2..47b341c0cc2 100644
--- a/usr.bin/mg/line.c
+++ b/usr.bin/mg/line.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: line.c,v 1.42 2006/07/25 08:27:09 kjell Exp $ */
+/* $OpenBSD: line.c,v 1.43 2006/11/17 08:45:31 kjell Exp $ */
/* This file is in the public domain. */
@@ -559,7 +559,7 @@ lreplace(RSIZE plen, char *st)
return (FALSE);
}
undo_add_boundary();
- undo_no_boundary(TRUE);
+ undo_boundary_enable(FALSE);
(void)backchar(FFARG | FFRAND, (int)plen);
(void)ldelete(plen, KNONE);
@@ -568,7 +568,7 @@ lreplace(RSIZE plen, char *st)
region_put_data(st, rlen);
lchange(WFFULL);
- undo_no_boundary(FALSE);
+ undo_boundary_enable(TRUE);
undo_add_boundary();
return (TRUE);
}