diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-05-26 09:01:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-05-26 09:01:04 +0000 |
commit | faf9a7e09d99fe13ab97ab4249f65d50f31029b5 (patch) | |
tree | 132e2f6b0485ff0c5025910fe132df65d5c5dd89 | |
parent | 74173e34d3687759f505ff5220c2287eebdfa8f1 (diff) |
Apply -n when only one pane in the window.
-rw-r--r-- | usr.bin/tmux/cmd-break-pane.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-break-pane.c b/usr.bin/tmux/cmd-break-pane.c index 5fee3bac629..8865abd6b03 100644 --- a/usr.bin/tmux/cmd-break-pane.c +++ b/usr.bin/tmux/cmd-break-pane.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-break-pane.c,v 1.57 2020/05/16 16:20:59 nicm Exp $ */ +/* $OpenBSD: cmd-break-pane.c,v 1.58 2020/05/26 09:01:03 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); } |