summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-22 12:30:01 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-22 12:30:01 +0000
commit61e78652616621242710a0c1cdb9db8834aee19c (patch)
treecfd86151efbc54204adf6f6a2d4df38d3f7bb4cd /usr.bin/tmux
parent880758c4c85cc97935b1627004254f778e022efe (diff)
Only redraw the pane when changing mode, not the entire window.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 565f45ae933..1246d3761ba 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.33 2009/10/19 13:18:13 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.34 2009/10/22 12:30:00 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -610,7 +610,7 @@ window_pane_set_mode(struct window_pane *wp, const struct window_mode *mode)
if ((s = wp->mode->init(wp)) != NULL)
wp->screen = s;
- server_redraw_window(wp->window);
+ wp->flags |= PANE_REDRAW;
return (0);
}
@@ -624,7 +624,7 @@ window_pane_reset_mode(struct window_pane *wp)
wp->mode = NULL;
wp->screen = &wp->base;
- server_redraw_window(wp->window);
+ wp->flags |= PANE_REDRAW;
}
void