mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Apply -n when only one pane in the window.
This commit is contained in:
parent
370f0bb98d
commit
392b381d1c
@ -80,6 +80,10 @@ cmd_break_pane_exec(struct cmd *self, struct cmdq_item *item)
|
||||
free(cause);
|
||||
return (CMD_RETURN_ERROR);
|
||||
}
|
||||
if (args_has(args, 'n')) {
|
||||
window_set_name(w, args_get(args, 'n'));
|
||||
options_set_number(w->options, "automatic-rename", 0);
|
||||
}
|
||||
server_unlink_window(src_s, wl);
|
||||
return (CMD_RETURN_NORMAL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user