aboutsummaryrefslogtreecommitdiff
path: root/screen-redraw.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-19 20:14:55 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-19 20:14:55 +0000
commit2afa8ebc021d82e0416c54ab47bbbfcb5d318a1d (patch)
tree8b19377fb2d197dc2099f0bfe6827eda4a86068d /screen-redraw.c
parent94471aab827d152375514a8bf69ac2f751e3ca67 (diff)
downloadrtmux-2afa8ebc021d82e0416c54ab47bbbfcb5d318a1d.tar.gz
rtmux-2afa8ebc021d82e0416c54ab47bbbfcb5d318a1d.tar.bz2
rtmux-2afa8ebc021d82e0416c54ab47bbbfcb5d318a1d.zip
Fix various silly problems with status line off.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 66d3d5ab..ff33ab31 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -1,4 +1,4 @@
-/* $Id: screen-redraw.c,v 1.19 2009-01-14 21:00:41 nicm Exp $ */
+/* $Id: screen-redraw.c,v 1.20 2009-01-19 20:14:55 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -53,14 +53,14 @@ screen_redraw_screen(struct client *c, struct screen *s)
s = wp->screen;
sy = screen_size_y(s);
- if (!status && TAILQ_NEXT(wp, entry) == NULL)
- sy--;
cx = s->cx;
cy = s->cy;
if (wp->yoff + sy <= w->sy) {
- for (i = 0; i < sy; i++)
- screen_redraw_line(c, s, wp->yoff, i);
+ for (i = 0; i < sy; i++) {
+ if (wp->yoff + i != c->sy - 1)
+ screen_redraw_line(c, s, wp->yoff, i);
+ }
if (TAILQ_NEXT(wp, entry) != NULL)
screen_redraw_blanky(c, wp->yoff + sy, 1, '-');
}
@@ -70,7 +70,7 @@ screen_redraw_screen(struct client *c, struct screen *s)
/* Fill in empty space below. */
if (w->sy < c->sy - status)
- screen_redraw_blanky(c, w->sy, c->sy - w->sy, '=');
+ screen_redraw_blanky(c, w->sy, c->sy - status - w->sy, '=');
/* Draw the status line. */
screen_redraw_status(c);