summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-select-layout.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-04-17 14:43:49 +0000
committernicm <nicm@openbsd.org>2019-04-17 14:43:49 +0000
commitd4ddf7e1665cc214d55aeaa38156b8cf76b4c8bf (patch)
tree2def0da642d75e0b90b3e329f5428d7f07c9573c /usr.bin/tmux/cmd-select-layout.c
parentDo not let the size of the pane status screen go negative. (diff)
downloadwireguard-openbsd-d4ddf7e1665cc214d55aeaa38156b8cf76b4c8bf.tar.xz
wireguard-openbsd-d4ddf7e1665cc214d55aeaa38156b8cf76b4c8bf.zip
Set the window size as well as the layout size when using the preset
layouts.
Diffstat (limited to 'usr.bin/tmux/cmd-select-layout.c')
-rw-r--r--usr.bin/tmux/cmd-select-layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-select-layout.c b/usr.bin/tmux/cmd-select-layout.c
index bc914123a8f..3c33c25af95 100644
--- a/usr.bin/tmux/cmd-select-layout.c
+++ b/usr.bin/tmux/cmd-select-layout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-select-layout.c,v 1.35 2018/07/02 12:39:14 nicm Exp $ */
+/* $OpenBSD: cmd-select-layout.c,v 1.36 2019/04/17 14:43:49 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -135,6 +135,7 @@ cmd_select_layout_exec(struct cmd *self, struct cmdq_item *item)
changed:
free(oldlayout);
+ recalculate_sizes();
server_redraw_window(w);
notify_window("window-layout-changed", w);
return (CMD_RETURN_NORMAL);