summaryrefslogtreecommitdiff
path: root/usr.bin/mg/def.h
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/def.h
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/def.h')
-rw-r--r--usr.bin/mg/def.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h
index e2311a1063d..a7bb7c62cf7 100644
--- a/usr.bin/mg/def.h
+++ b/usr.bin/mg/def.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: def.h,v 1.96 2006/08/01 22:16:03 jason Exp $ */
+/* $OpenBSD: def.h,v 1.97 2006/11/17 08:45:31 kjell Exp $ */
/* This file is in the public domain. */
@@ -599,12 +599,13 @@ int cntnonmatchlines(int, int);
/* undo.c X */
void free_undo_record(struct undo_rec *);
int undo_dump(int, int);
+int undo_enabled(void);
int undo_enable(int);
void undo_add_boundary(void);
void undo_add_modified(void);
int undo_add_insert(struct line *, int, int);
int undo_add_delete(struct line *, int, int);
-void undo_no_boundary(int);
+void undo_boundary_enable(int);
int undo_add_change(struct line *, int, int);
int undo(int, int);