diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:44:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:44:06 +0000 |
commit | ff500b46c975ed156407cdcf69fafc9b22b61e2c (patch) | |
tree | 56e9b5acb5fb662bd0c30264dde3ac1ee871d9fd /screen-redraw.c | |
parent | 72d56bd6140a0101c04f48da6633ff93708b731d (diff) | |
download | rtmux-ff500b46c975ed156407cdcf69fafc9b22b61e2c.tar.gz rtmux-ff500b46c975ed156407cdcf69fafc9b22b61e2c.tar.bz2 rtmux-ff500b46c975ed156407cdcf69fafc9b22b61e2c.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index 0abd6137..6f3ff842 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -1,4 +1,4 @@ -/* $Id: screen-redraw.c,v 1.40 2009-07-15 17:43:45 nicm Exp $ */ +/* $Id: screen-redraw.c,v 1.41 2009-07-15 17:44:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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); } |