summaryrefslogtreecommitdiffstats
path: root/screen-redraw.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-14 19:11:58 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-14 19:11:58 +0000
commitf08c9b2217c148e25a18a11fd55d96d93cbb3736 (patch)
treeb9da9c69f6a795b005f49cb04bf0ebb476e2e7d7 /screen-redraw.c
parentae2ea525752c9eb1be9e9d7b3fa71b390a70f2ec (diff)
For some reason when clearing status/message it was redrawing the entire client
not just the status line. Changing this also revealed the check for the status line was incorrect when drawing the pane.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 70f94a28..e63f8725 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -166,7 +166,7 @@ screen_redraw_screen(struct client *c, int status_only)
/* Draw the pane. */
for (i = 0; i < wp->sy; i++) {
- if (status_only && i != tty->sy - 1)
+ if (status_only && wp->yoff + i != tty->sy - 1)
continue;
tty_draw_line(tty, wp->screen, i, wp->xoff, wp->yoff);
}