diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-04-02 21:15:56 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-04-02 21:15:56 +0000 |
commit | 72dab09f813cb6fec7b8cf07531100b1ee06eabe (patch) | |
tree | 4afab234861b8eddca48d338794d1f40ee0e439b | |
parent | 15f24910235be301b785b5de760f42b01e1e00fd (diff) |
Don't continue to write into panes that are scheduled for redraw.
-rw-r--r-- | tty-write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tty-write.c b/tty-write.c index 78ac131d..ff9468b4 100644 --- a/tty-write.c +++ b/tty-write.c @@ -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; |