summaryrefslogtreecommitdiff
path: root/usr.bin/vim/ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/vim/ops.c')
-rw-r--r--usr.bin/vim/ops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/vim/ops.c b/usr.bin/vim/ops.c
index c95fb1571ad..5805a73c6d5 100644
--- a/usr.bin/vim/ops.c
+++ b/usr.bin/vim/ops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ops.c,v 1.2 1996/09/21 06:23:13 downsj Exp $ */
+/* $OpenBSD: ops.c,v 1.3 1996/10/14 03:55:22 downsj Exp $ */
/* vi:set ts=4 sw=4:
*
* VIM - Vi IMproved by Bram Moolenaar
@@ -755,7 +755,10 @@ do_delete()
/* replace the line */
ml_replace(curwin->w_cursor.lnum, newp, FALSE);
}
+
curwin->w_cursor.lnum = lnum;
+ adjust_cursor();
+
CHANGED;
updateScreen(VALID_TO_CURSCHAR);
op_line_count = 0; /* no lines deleted */