Use the right winlink pointer in new-window.

pull/1676/head
Nicholas Marriott 2019-04-10 11:40:59 +01:00
parent 4a3ac3bd26
commit f3fcf977e4
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ cmd_new_window_exec(struct cmd *self, struct cmdq_item *item)
free(cp);
}
cmd_find_from_winlink(&fs, wl, 0);
cmd_find_from_winlink(&fs, new_wl, 0);
hooks_insert(s->hooks, item, &fs, "after-new-window");
return (CMD_RETURN_NORMAL);