Don't continue to write into panes that are scheduled for redraw.

This commit is contained in:
Nicholas Marriott 2009-04-02 21:15:56 +00:00
parent 15f2491023
commit 72dab09f81

View File

@ -1,4 +1,4 @@
/* $Id: tty-write.c,v 1.13 2009-04-02 20:30:23 nicm Exp $ */ /* $Id: tty-write.c,v 1.14 2009-04-02 21:15:56 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -42,7 +42,7 @@ tty_vwrite_cmd(struct window_pane *wp, enum tty_cmd cmd, va_list ap)
if (wp == NULL) if (wp == NULL)
return; return;
if (wp->window->flags & WINDOW_REDRAW) if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW)
return; return;
if (wp->window->flags & WINDOW_HIDDEN || wp->flags & PANE_HIDDEN) if (wp->window->flags & WINDOW_HIDDEN || wp->flags & PANE_HIDDEN)
return; return;
@ -73,7 +73,7 @@ tty_write_mode(struct window_pane *wp, int mode)
if (wp == NULL) if (wp == NULL)
return; return;
if (wp->window->flags & WINDOW_REDRAW) if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW)
return; return;
if (wp->window->flags & WINDOW_HIDDEN || wp->flags & PANE_HIDDEN) if (wp->window->flags & WINDOW_HIDDEN || wp->flags & PANE_HIDDEN)
return; return;