diff options
author | Vincent Labrecque <vincent@cvs.openbsd.org> | 2003-11-29 17:28:41 +0000 |
---|---|---|
committer | Vincent Labrecque <vincent@cvs.openbsd.org> | 2003-11-29 17:28:41 +0000 |
commit | 4217f0a91228c93db9f3bc76f085106afee8e63d (patch) | |
tree | 8d1a42b12dba59907939521cf6e85d17644d6464 /usr.bin/mg/window.c | |
parent | f840511f6ee9eb5171023282b52f9e26f9304a76 (diff) |
save the previous undo position as an offset in the buffer instead of
a line/offset pair
Diffstat (limited to 'usr.bin/mg/window.c')
-rw-r--r-- | usr.bin/mg/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/window.c b/usr.bin/mg/window.c index 1d75d054f8c..d4cddce1905 100644 --- a/usr.bin/mg/window.c +++ b/usr.bin/mg/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.13 2003/10/27 11:21:12 vincent Exp $ */ +/* $OpenBSD: window.c,v 1.14 2003/11/29 17:28:39 vincent Exp $ */ /* * Window handling. @@ -26,7 +26,7 @@ new_window(BUFFER *bp) bp->b_nwnd++; LIST_INIT(&wp->w_undo); wp->w_undoptr = NULL; - memset(&wp->w_undopos, 0, sizeof wp->w_undopos); + wp->w_undopos = 0; return (wp); } |