aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-04-02 21:08:15 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-04-02 21:08:15 +0000
commitdbf52facd2fa678a9705428d881a9d99188d401d (patch)
treed7d1dea43e8a9fe1eba5f813567765b0b3f9a2a2 /tty.c
parent84cde92c8fa4f8b6e777c9c6608312d7dbc33ced (diff)
downloadrtmux-dbf52facd2fa678a9705428d881a9d99188d401d.tar.gz
rtmux-dbf52facd2fa678a9705428d881a9d99188d401d.tar.bz2
rtmux-dbf52facd2fa678a9705428d881a9d99188d401d.zip
Change scroll/pane redraws to only redraw the single pane affected rather than
the entire window.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tty.c b/tty.c
index 9c4f1484..3376c605 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.91 2009-04-02 20:30:23 nicm Exp $ */
+/* $Id: tty.c,v 1.92 2009-04-02 21:08:15 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -395,11 +395,9 @@ tty_redraw_region(struct tty *tty, struct window_pane *wp)
* most cases, this is likely to be followed by some more scrolling -
* without this, the entire pane ends up being redrawn many times which
* can be much more data.
- *
- * XXX Should just schedule to redraw this pane...
*/
if (s->old_rupper - s->old_rlower >= screen_size_y(s) / 2) {
- server_redraw_window(wp->window);
+ wp->flags |= PANE_REDRAW;
return;
}