summaryrefslogtreecommitdiff
path: root/usr.bin/mg/def.h
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2005-10-06 16:48:01 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2005-10-06 16:48:01 +0000
commit2cc256f97c1b789dc568732eb4a97a6a34f20fdf (patch)
treef75179eb536184e7cf145138a0553690e959a36b /usr.bin/mg/def.h
parentc3f919b52e9bff456986b3386d08c25e0df86ed1 (diff)
Make mg undo much more emacs like (and correct).
Undo boundaries are now placed at newlines, and undo of search-replace works as expected. Fixes bad behaviour reported by matthieu Ok deraadt@, beck@
Diffstat (limited to 'usr.bin/mg/def.h')
-rw-r--r--usr.bin/mg/def.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h
index a6bd33ef798..3cab2907800 100644
--- a/usr.bin/mg/def.h
+++ b/usr.bin/mg/def.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: def.h,v 1.64 2005/06/14 18:14:40 kjell Exp $ */
+/* $OpenBSD: def.h,v 1.65 2005/10/06 16:48:00 kjell Exp $ */
/* This file is in the public domain. */
@@ -596,6 +596,7 @@ int undo_enable(int);
int undo_add_boundary(void);
int undo_add_insert(LINE *, int, int);
int undo_add_delete(LINE *, int, int);
+void undo_no_boundary(int);
int undo_add_change(LINE *, int, int);
int undo(int, int);