From c0d74661b7a176340a3ceaa77622d6c3747a2984 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 16 Mar 2020 18:08:39 +0000 Subject: [PATCH] Do not attempt to close a NULL pane when failing to create a new one. --- cmd-split-window.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd-split-window.c b/cmd-split-window.c index eaf1f74c..a5fa3acc 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -153,7 +153,6 @@ cmd_split_window_exec(struct cmd *self, struct cmdq_item *item) sc.flags |= SPAWN_DETACHED; if ((new_wp = spawn_pane(&sc, &cause)) == NULL) { - layout_close_pane(new_wp); cmdq_error(item, "create pane failed: %s", cause); free(cause); return (CMD_RETURN_ERROR);