summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-06 17:17:31 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-06 17:17:31 +0000
commitac332b6e79b9518f1f0e7c9e563f93ce696c252b (patch)
tree95f52f18204eca46ffdc01fe4f4795cfaf42b323 /tty.c
parent596080a6994bf834a570193c054f115c0769e4fa (diff)
ich emulation should maintain cursor position; bug spotted by merdely.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index add7e844..2369664e 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.20 2008-05-31 09:34:36 nicm Exp $ */
+/* $Id: tty.c,v 1.21 2008-06-06 17:17:31 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -467,6 +467,7 @@ tty_vwrite(struct tty *tty, unused struct screen *s, int cmd, va_list ap)
while (ua-- > 0)
tty_putc(tty, ' ');
tty_puts(tty, exit_insert_mode);
+ tty_puts(tty, tparm(cursor_address, s->cy, s->cx));
}
break;
case TTY_DELETECHARACTER: