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

pull/1/head
Nicholas Marriott 2009-04-02 21:15:56 +00:00
parent 15f2491023
commit 72dab09f81
1 changed files with 3 additions and 3 deletions

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>
@ -42,7 +42,7 @@ tty_vwrite_cmd(struct window_pane *wp, enum tty_cmd cmd, va_list ap)
if (wp == NULL)
return;
if (wp->window->flags & WINDOW_REDRAW)
if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW)
return;
if (wp->window->flags & WINDOW_HIDDEN || wp->flags & PANE_HIDDEN)
return;
@ -73,7 +73,7 @@ tty_write_mode(struct window_pane *wp, int mode)
if (wp == NULL)
return;
if (wp->window->flags & WINDOW_REDRAW)
if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW)
return;
if (wp->window->flags & WINDOW_HIDDEN || wp->flags & PANE_HIDDEN)
return;