aboutsummaryrefslogtreecommitdiff
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-05-03 19:02:26 +0100
committerThomas Adam <thomas@xteddy.org>2018-05-03 19:02:26 +0100
commit1d858aa89eecae2a4aa6021650216ca9fce8ba25 (patch)
tree5d2f91e582da67035af9dbd34b82ed22bc3223b4 /cmd-new-window.c
parent645fe9013fdddf54ccc66df8a4477604f293a4f6 (diff)
parente24a077752106189e932be29eb71fe7fc40089b6 (diff)
downloadrtmux-1d858aa89eecae2a4aa6021650216ca9fce8ba25.tar.gz
rtmux-1d858aa89eecae2a4aa6021650216ca9fce8ba25.tar.bz2
rtmux-1d858aa89eecae2a4aa6021650216ca9fce8ba25.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r--cmd-new-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c
index 4c9878ed..6517e99e 100644
--- a/cmd-new-window.c
+++ b/cmd-new-window.c
@@ -63,7 +63,7 @@ cmd_new_window_exec(struct cmd *self, struct cmdq_item *item)
struct environ_entry *envent;
struct cmd_find_state fs;
- if (args_has(args, 'a')) {
+ if (args_has(args, 'a') && wl != NULL) {
if ((idx = winlink_shuffle_up(s, wl)) == -1) {
cmdq_error(item, "no free window indexes");
return (CMD_RETURN_ERROR);