From 49477de55c8578ac7eac265c1557f47c6107940d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 25 Jun 2009 15:50:48 +0000 Subject: Fix some miscalculations when clearing to start of screen: the number of lines to the cursor is cy not cy - 1, and the current cursor cell should be included. --- tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index 1636ff23..464575c5 100644 --- a/tty.c +++ b/tty.c @@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.100 2009-06-24 17:31:03 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.3 2009/06/03 23:26:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -807,7 +807,7 @@ tty_cmd_clearstartofscreen( tty_putc(tty, ' '); } } - for (i = 0; i < s->old_cx; i++) + for (i = 0; i <= s->old_cx; i++) tty_putc(tty, ' '); } -- cgit