Synchronize the list binding pane (bind-key + ?)

This commit is contained in:
Nicolas Viennot
2013-06-26 02:05:13 -04:00
parent 59cab76dd8
commit c9a6e2560a
5 changed files with 33 additions and 1 deletions

View File

@@ -49,6 +49,16 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_q *cmdq)
size_t used;
int width, keywidth;
#ifdef TMATE
/* XXX TODO Really nasty hack, we really need our own client instance... */
struct client fake_client;
if (!cmdq->client) {
cmdq->client = &fake_client;
cmdq->client->flags = 0;
cmdq->client->session = RB_MIN(sessions, &sessions);
}
#endif
if (args_has(args, 't'))
return (cmd_list_keys_table(self, cmdq));