summaryrefslogtreecommitdiff
path: root/usr.bin
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
commit94e46ca2fe09720090298d99ba3f840715d3bf00 (patch)
treefda7ed1131ccf71ba8ad29e6a92f4bfdb975b88d /usr.bin
parent5d977d7bb6dce30d9b9e40ed55e991dc7100a6e2 (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')
-rw-r--r--usr.bin/mg/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/util.c b/usr.bin/mg/util.c
index 87af6566a4b..f3f368048c0 100644
--- a/usr.bin/mg/util.c
+++ b/usr.bin/mg/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.22 2006/07/25 08:27:09 kjell Exp $ */
+/* $OpenBSD: util.c,v 1.23 2006/11/17 08:45:31 kjell Exp $ */
/* This file is in the public domain. */
@@ -120,7 +120,7 @@ twiddle(int f, int n)
dotp = curwp->w_dotp;
doto = curwp->w_doto;
undo_add_boundary();
- undo_no_boundary(TRUE);
+ undo_boundary_enable(FALSE);
if (doto == llength(dotp)) {
if (--doto <= 0)
return (FALSE);
@@ -136,7 +136,7 @@ twiddle(int f, int n)
linsert(1, cr);
if (fudge != TRUE)
(void)backchar(FFRAND, 1);
- undo_no_boundary(FALSE);
+ undo_boundary_enable(TRUE);
undo_add_boundary();
lchange(WFEDIT);
return (TRUE);