From bbe8ebf9c26e45fd8c402627b84b3646db445d45 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 14 Oct 2019 09:16:48 +0000 Subject: Some old tmux versions can sometimes generate layout strings which have the incorrect size for the top cell. Previously tmux didn't care but now that panes can be partly hidden, the size matters and is checked more strictly. So add some code to fix up the most common problem and a sanity check to reject layouts with any other size problems. Reported by Aleksandrs Ledovskis in GitHub issue 1930. --- cmd-list-keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-list-keys.c') diff --git a/cmd-list-keys.c b/cmd-list-keys.c index 5113999d..8636b70a 100644 --- a/cmd-list-keys.c +++ b/cmd-list-keys.c @@ -125,7 +125,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmdq_item *item) cp = utf8_padcstr(table->name, tablewidth); cplen = strlen(cp) + 1; - while (tmpused + cplen + 1>= tmpsize) { + while (tmpused + cplen + 1 >= tmpsize) { tmpsize *= 2; tmp = xrealloc(tmp, tmpsize); } -- cgit