mirror of
https://github.com/tmux/tmux.git
synced 2025-01-11 18:58:47 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
493922dc4b
@ -377,7 +377,7 @@ key_bindings_init(void)
|
|||||||
"bind -N 'Move to the previously active pane' \\; { last-pane }",
|
"bind -N 'Move to the previously active pane' \\; { last-pane }",
|
||||||
"bind -N 'Choose a paste buffer from a list' = { choose-buffer -Z }",
|
"bind -N 'Choose a paste buffer from a list' = { choose-buffer -Z }",
|
||||||
"bind -N 'List key bindings' ? { list-keys -N }",
|
"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 'Spread panes out evenly' E { select-layout -E }",
|
||||||
"bind -N 'Switch to the last client' L { switch-client -l }",
|
"bind -N 'Switch to the last client' L { switch-client -l }",
|
||||||
"bind -N 'Clear the marked pane' M { select-pane -M }",
|
"bind -N 'Clear the marked pane' M { select-pane -M }",
|
||||||
|
@ -162,8 +162,10 @@ layout_parse(struct window *w, const char *layout, char **cause)
|
|||||||
u_short csum;
|
u_short csum;
|
||||||
|
|
||||||
/* Check validity. */
|
/* Check validity. */
|
||||||
if (sscanf(layout, "%hx,", &csum) != 1)
|
if (sscanf(layout, "%hx,", &csum) != 1) {
|
||||||
|
*cause = xstrdup("invalid layout");
|
||||||
return (-1);
|
return (-1);
|
||||||
|
}
|
||||||
layout += 5;
|
layout += 5;
|
||||||
if (csum != layout_checksum(layout)) {
|
if (csum != layout_checksum(layout)) {
|
||||||
*cause = xstrdup("invalid layout");
|
*cause = xstrdup("invalid layout");
|
||||||
|
Loading…
Reference in New Issue
Block a user