Fix new-window -k, GitHub issue 1403.

This commit is contained in:
nicm 2018-07-15 06:57:13 +00:00
parent cfc81692e6
commit ff67ef945d

View File

@ -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')) {