summaryrefslogtreecommitdiff
path: root/usr.bin/mg/def.h
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2005-10-11 01:08:54 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2005-10-11 01:08:54 +0000
commit84d65e93af5f549a6a231de6c1463310a43308c9 (patch)
tree00c8eb5a04689436c97aa614aef8405e24426ae9 /usr.bin/mg/def.h
parent0ecee07d8fe56b1a0133782d5bd5870088af493a (diff)
A while back, undo records were moved from the BUFFER struct to MGWIN.
This is nonsensical, and utterly broken if you are undo-ing across multiple buffers. Change them back to being associated with the BUFFER struct. (effectively, just revert the original change) ok deraadt@
Diffstat (limited to 'usr.bin/mg/def.h')
-rw-r--r--usr.bin/mg/def.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h
index 78c4aff8611..2055a40d206 100644
--- a/usr.bin/mg/def.h
+++ b/usr.bin/mg/def.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: def.h,v 1.66 2005/10/11 00:50:00 kjell Exp $ */
+/* $OpenBSD: def.h,v 1.67 2005/10/11 01:08:53 kjell Exp $ */
/* This file is in the public domain. */
@@ -203,10 +203,6 @@ typedef struct MGWIN {
char w_ntrows; /* # of rows of text in window */
char w_force; /* If NZ, forcing row. */
char w_flag; /* Flags. */
- LIST_HEAD(, undo_rec) w_undo; /* Undo actions list */
- int w_undopos; /* Where we were during the */
- /* last undo action. */
- struct undo_rec *w_undoptr;
struct LINE *w_wrapline;
} MGWIN;
#define w_wndp w_list.l_p.l_wp
@@ -253,6 +249,10 @@ typedef struct BUFFER {
char b_flag; /* Flags */
char b_fname[NFILEN]; /* File name */
struct fileinfo b_fi; /* File attributes */
+ LIST_HEAD(, undo_rec) b_undo; /* Undo actions list */
+ int b_undopos; /* Where we were during the */
+ /* last undo action. */
+ struct undo_rec *b_undoptr;
} BUFFER;
#define b_bufp b_list.l_p.x_bp
#define b_bname b_list.l_name