From c8e27271e240bbdab2925a00c09a17e613399ae9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 7 Feb 2009 00:05:23 +0000 Subject: [PATCH] Update cursor y on newline otherwise RI gets screwed up at y=0. --- tty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 82ef0c15..83b75929 100644 --- a/tty.c +++ b/tty.c @@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.64 2009-01-28 19:52:21 nicm Exp $ */ +/* $Id: tty.c,v 1.65 2009-02-07 00:05:23 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -539,6 +539,7 @@ tty_cmd_linefeed(struct tty *tty, struct screen *s, u_int oy, unused va_list ap) tty_cursor(tty, s->cx, s->cy, oy); tty_putc(tty, '\n'); + tty->cy++; } void