diff options
author | Vincent Labrecque <vincent@cvs.openbsd.org> | 2003-11-09 01:11:15 +0000 |
---|---|---|
committer | Vincent Labrecque <vincent@cvs.openbsd.org> | 2003-11-09 01:11:15 +0000 |
commit | 0042c7e702a7aeb711dee3af7d93d923db45d92a (patch) | |
tree | 7b638fffd6135137f537f0b585bd2e547d176925 /usr.bin/mg/line.c | |
parent | 56e895f421d41b7e319dd800b023712df1160213 (diff) |
remove the only use of the hackish undo_add_custom function.
Diffstat (limited to 'usr.bin/mg/line.c')
-rw-r--r-- | usr.bin/mg/line.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mg/line.c b/usr.bin/mg/line.c index eb7cdddce81..cb656a0a8a2 100644 --- a/usr.bin/mg/line.c +++ b/usr.bin/mg/line.c @@ -1,4 +1,4 @@ -/* $OpenBSD: line.c,v 1.18 2003/04/16 02:38:18 millert Exp $ */ +/* $OpenBSD: line.c,v 1.19 2003/11/09 01:11:14 vincent Exp $ */ /* * Text line handling. @@ -255,9 +255,9 @@ lnewline(void) lchange(WFHARD); - /* XXX */ - undo_add_custom(1,INSERT, curwp->w_dotp, curwp->w_doto, - strdup("\n"), 1); + undo_add_boundary(); + undo_add_insert(curwp->w_dotp, llength(curwp->w_dotp), 1); + undo_add_boundary(); /* Get the address and offset of "." */ lp1 = curwp->w_dotp; |