From 23e7da1ccb63d2cb9bea945060c6f5158e73d967 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 9 Oct 2008 05:31:04 +0000 Subject: [PATCH] Clear correct range. --- log.c | 4 ++-- screen.c | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/log.c b/log.c index 16c7f503..631ec5b9 100644 --- a/log.c +++ b/log.c @@ -1,4 +1,4 @@ -/* $Id: log.c,v 1.8 2008-09-26 06:45:26 nicm Exp $ */ +/* $Id: log.c,v 1.9 2008-10-09 05:31:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -65,7 +65,7 @@ log_open_tty(int level) tzset(); } -/* Open logging to tty. */ +/* Open logging to file. */ void log_open_file(int level, const char *path) { diff --git a/screen.c b/screen.c index 4b8329cd..550eb58a 100644 --- a/screen.c +++ b/screen.c @@ -1,4 +1,4 @@ -/* $Id: screen.c,v 1.75 2008-09-29 16:59:47 nicm Exp $ */ +/* $Id: screen.c,v 1.76 2008-10-09 05:31:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -48,9 +48,7 @@ screen_reinit(struct screen *s) s->mode = MODE_CURSOR; - /* XXX */ - grid_clear_lines( - s->grid, s->grid->hsize, s->grid->hsize + s->grid->sy - 1); + grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy - 1); screen_clear_selection(s); }