From 2ec1038ffd49a2fb8e5741d689bc8889820a896e Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 6 Aug 2026 21:47:20 +0000 Subject: [PATCH] =?UTF-8?q?Always=20unzoom=20before=20splitting=20window,?= =?UTF-8?q?=20for=20floating=20panes=20also.=20We=20already=20unzoomed=20f?= =?UTF-8?q?or=20tiled=20panes=20and=20this=20does=20the=20same=20for=20flo?= =?UTF-8?q?ating=20panes=20(until=20we=20support=20having=20them=20float?= =?UTF-8?q?=20over=20a=20zoomed=20pane).=20From=20=C3=89ric=20NICOLAS.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd-split-window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd-split-window.c b/cmd-split-window.c index 8cefba937..a089ba6a5 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-split-window.c,v 1.146 2026/07/21 12:28:43 nicm Exp $ */ +/* $OpenBSD: cmd-split-window.c,v 1.147 2026/08/06 21:47:20 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -97,6 +97,8 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item) enum pane_lines lines; u_int count = args_count(args); + window_unzoom(w, 1); + if (cmd_get_entry(self) == &cmd_new_pane_entry) is_floating = !args_has(args, 'L'); else {