summaryrefslogtreecommitdiffstats
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authornicm <nicm>2018-07-15 06:57:13 +0000
committernicm <nicm>2018-07-15 06:57:13 +0000
commitff67ef945dd9b93b7d62ea1ec8077d86f3c57d12 (patch)
tree479baeed0f9f4870e6ee1466e0908deba5f15360 /cmd-new-window.c
parentcfc81692e64fee9b64ae72dbd978096bed435ab1 (diff)
Fix new-window -k, GitHub issue 1403.
Diffstat (limited to 'cmd-new-window.c')
-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')) {