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 }", 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");