From 993e7a937fc416c17d96b455cce14b4db561d744 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 2 Feb 2023 09:06:44 +0000 Subject: [PATCH 1/2] Tweak note for D key binding, from Clark Wang. --- key-bindings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key-bindings.c b/key-bindings.c index 528e0b73..d0697544 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -377,7 +377,7 @@ key_bindings_init(void) "bind -N 'Move to the previously active pane' \\; { last-pane }", "bind -N 'Choose a paste buffer from a list' = { choose-buffer -Z }", "bind -N 'List key bindings' ? { list-keys -N }", - "bind -N 'Choose a client from a list' D { choose-client -Z }", + "bind -N 'Choose and detach a client from a list' D { choose-client -Z }", "bind -N 'Spread panes out evenly' E { select-layout -E }", "bind -N 'Switch to the last client' L { switch-client -l }", "bind -N 'Clear the marked pane' M { select-pane -M }", From f10854cfc5e43f646b02b3031bfc4bc3f5f6c513 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 2 Feb 2023 09:24:59 +0000 Subject: [PATCH 2/2] Add a missing error message which causes an invalid layout name to crash. --- layout-custom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layout-custom.c b/layout-custom.c index 932b30e7..d7be5b18 100644 --- a/layout-custom.c +++ b/layout-custom.c @@ -162,8 +162,10 @@ layout_parse(struct window *w, const char *layout, char **cause) u_short csum; /* Check validity. */ - if (sscanf(layout, "%hx,", &csum) != 1) + if (sscanf(layout, "%hx,", &csum) != 1) { + *cause = xstrdup("invalid layout"); return (-1); + } layout += 5; if (csum != layout_checksum(layout)) { *cause = xstrdup("invalid layout");