From 78604d2745675cfadeb29e2681177ec9ec7a86b5 Mon Sep 17 00:00:00 2001 From: Kjell Wooding Date: Fri, 17 Nov 2006 08:45:32 +0000 Subject: 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@ --- usr.bin/mg/def.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/mg/def.h') 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); -- cgit v1.2.3