summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authornicm <nicm>2016-06-16 10:55:47 +0000
committernicm <nicm>2016-06-16 10:55:47 +0000
commit325cbe90d925d3deb90559463b6d968c31fa5924 (patch)
tree579aa5c9a0ddab9362560e5593e4843d5ca3c0a7 /server-client.c
parent0c7ddae2abe67762b00fea10723d01251f3c156d (diff)
Allow a command to be specified to display-panes, similar to
command-prompt, rather than always just selecting the pane.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/server-client.c b/server-client.c
index 11995f40..0c0b2cff 100644
--- a/server-client.c
+++ b/server-client.c
@@ -184,6 +184,7 @@ server_client_lost(struct client *c)
c->flags |= CLIENT_DEAD;
+ server_clear_identify(c, NULL);
status_prompt_clear(c);
status_message_clear(c);
@@ -606,16 +607,16 @@ server_client_handle_key(struct client *c, key_code key)
return;
window_unzoom(w);
wp = window_pane_at_index(w, key - '0');
- if (wp != NULL && window_pane_visible(wp))
- window_set_active_pane(w, wp);
- server_clear_identify(c);
+ if (wp != NULL && !window_pane_visible(wp))
+ wp = NULL;
+ server_clear_identify(c, wp);
return;
}
/* Handle status line. */
if (!(c->flags & CLIENT_READONLY)) {
status_message_clear(c);
- server_clear_identify(c);
+ server_clear_identify(c, NULL);
}
if (c->prompt_string != NULL) {
if (!(c->flags & CLIENT_READONLY))