summaryrefslogtreecommitdiffstats
path: root/cmd-choose-window.c
authornicm <nicm>2009-01-15 19:41:12 (GMT)
committer nicm <nicm>2009-01-15 19:41:12 (GMT)
commitdef0dd2874ae61a862bac24353de80202e05f24d (patch) (side-by-side diff)
treed4c3170a8b57acdbb59ec145f4b13375695d4783 /cmd-choose-window.c
parent55ca1a92d26666a3042d0f4ee36be201dba210e1 (diff)
downloadtmux-old-def0dd2874ae61a862bac24353de80202e05f24d.zip
tmux-old-def0dd2874ae61a862bac24353de80202e05f24d.tar.gz
tmux-old-def0dd2874ae61a862bac24353de80202e05f24d.tar.bz2
Recalculate sizes and don't redraw if unnecessary.
Diffstat (limited to 'cmd-choose-window.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-choose-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-choose-window.c b/cmd-choose-window.c
index 8f5d960..ae160e5 100644
--- a/cmd-choose-window.c
+++ b/cmd-choose-window.c
@@ -96,8 +96,9 @@ cmd_choose_window_callback(void *data, int idx)
if (idx != -1 && cdata->session <= ARRAY_LENGTH(&sessions) - 1) {
s = ARRAY_ITEM(&sessions, cdata->session);
- if (s != NULL && session_select(s, idx) != -1)
+ if (s != NULL && session_select(s, idx) == 0)
server_redraw_session(s);
+ recalculate_sizes();
}
xfree(cdata);
}