summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-03-16 18:08:40 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-03-16 18:08:40 +0000
commita512b3bc9d032f85b51623c85d4e46305302a4d9 (patch)
tree486f1dbf25a1af62941d26454637a16816c76f97 /usr.bin
parent6c1dfb915fefae38d4c62d2c06a71ad5893295b4 (diff)
Do not attempt to close a NULL pane when failing to create a new one.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-split-window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c
index 61faeded1e7..08281c5dae5 100644
--- a/usr.bin/tmux/cmd-split-window.c
+++ b/usr.bin/tmux/cmd-split-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-split-window.c,v 1.96 2019/10/15 08:25:37 nicm Exp $ */
+/* $OpenBSD: cmd-split-window.c,v 1.97 2020/03/16 18:08:39 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -154,7 +154,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);