diff options
author | nicm <nicm> | 2020-03-16 18:08:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-03-17 16:14:25 +0000 |
commit | c0d74661b7a176340a3ceaa77622d6c3747a2984 (patch) | |
tree | 7e6609d974de93f1de5672b254fafa30400e589c | |
parent | b21a9b1c4eb175938b07855e670a39302726a03d (diff) |
Do not attempt to close a NULL pane when failing to create a new one.
-rw-r--r-- | cmd-split-window.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |