Freeze output when showing display line, fixes problems when no status line.

This commit is contained in:
Nicholas Marriott
2008-06-20 06:36:01 +00:00
parent 89ea06e0a1
commit 17fde823a8
4 changed files with 20 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $Id: server.c,v 1.72 2008-06-19 23:24:40 nicm Exp $ */
/* $Id: server.c,v 1.73 2008-06-20 06:36:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -304,11 +304,15 @@ server_check_redraw(struct client *c)
struct screen screen;
u_int xx, yy, sx, sy;
char title[BUFSIZ];
int flags;
if (c == NULL || c->session == NULL)
return;
s = c->session;
flags = c->tty.flags & TTY_FREEZE;
c->tty.flags &= ~TTY_FREEZE;
if (options_get_number(&s->options, "set-titles")) {
xsnprintf(title, sizeof title,
"%s:%u:%s - \"%s\"", s->name, s->curw->idx,
@ -363,6 +367,8 @@ server_check_redraw(struct client *c)
status_redraw(c);
}
c->tty.flags |= flags;
c->flags &= ~(CLIENT_REDRAW|CLIENT_STATUS);
}