aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-07-08 18:02:31 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-07-08 18:02:31 +0000
commit9875be3327f8d97a23a515679b9b09f698138af4 (patch)
tree9311d980d82f38345ab4d03ecb9a08e8f54c739e
parenta182502af0a631cd3a3dcf63e89e1139e3440ecb (diff)
downloadrtmux-9875be3327f8d97a23a515679b9b09f698138af4.tar.gz
rtmux-9875be3327f8d97a23a515679b9b09f698138af4.tar.bz2
rtmux-9875be3327f8d97a23a515679b9b09f698138af4.zip
When reinitialising the screen, do not omit to clear the last line.
-rw-r--r--screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen.c b/screen.c
index 2a3bd181..463c0848 100644
--- a/screen.c
+++ b/screen.c
@@ -1,4 +1,4 @@
-/* $Id: screen.c,v 1.88 2009-06-25 20:27:31 nicm Exp $ */
+/* $OpenBSD: screen.c,v 1.6 2009/07/08 05:56:11 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -53,7 +53,7 @@ screen_reinit(struct screen *s)
screen_reset_tabs(s);
- grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy - 1);
+ grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy);
screen_clear_selection(s);
}