summaryrefslogtreecommitdiff
path: root/usr.bin/mg/line.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mg/line.c')
-rw-r--r--usr.bin/mg/line.c8
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;