summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd-new-window.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c
index 6a7cf0b8..5baeff65 100644
--- a/cmd-new-window.c
+++ b/cmd-new-window.c
@@ -103,7 +103,6 @@ cmd_new_window_exec(struct cmd *self, struct cmdq_item *item)
else
name = NULL;
- wl = NULL;
if (idx != -1)
wl = winlink_find_by_index(&s->windows, idx);
if (wl != NULL && args_has(args, 'k')) {