Apply -n when only one pane in the window.

pull/2270/head
nicm 2020-05-26 09:01:03 +00:00
parent 370f0bb98d
commit 392b381d1c
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}