diff options
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r-- | cmd-list-keys.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c index 78998b66..f0bcece3 100644 --- a/cmd-list-keys.c +++ b/cmd-list-keys.c @@ -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)); |