Instead of faking up a status line in status_redraw, use the same code to

redraw it as to draw the entire screen, just skip all lines but the last.
This commit is contained in:
Nicholas Marriott
2009-07-15 17:43:45 +00:00
parent ad1945c278
commit 72d56bd614
4 changed files with 57 additions and 61 deletions

View File

@ -1,4 +1,4 @@
/* $Id: server.c,v 1.157 2009-07-14 06:39:25 nicm Exp $ */
/* $Id: server.c,v 1.158 2009-07-15 17:43:45 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -562,7 +562,7 @@ server_check_redraw(struct client *c)
if (server_locked)
server_redraw_locked(c);
else
screen_redraw_screen(c);
screen_redraw_screen(c, 0);
c->flags &= ~CLIENT_STATUS;
} else {
TAILQ_FOREACH(wp, &c->session->curw->window->panes, entry) {
@ -572,7 +572,7 @@ server_check_redraw(struct client *c)
}
if (c->flags & CLIENT_STATUS)
screen_redraw_status(c);
screen_redraw_screen(c, 1);
c->tty.flags |= flags;
@ -603,7 +603,7 @@ server_redraw_locked(struct client *c)
for (i = 0; i < screen_size_y(&screen); i++)
tty_draw_line(&c->tty, &screen, i, 0, 0);
screen_redraw_status(c);
screen_redraw_screen(c, 1);
screen_free(&screen);
}