diff --git a/popup.c b/popup.c index fc3998e4..8c4a65c6 100644 --- a/popup.c +++ b/popup.c @@ -352,7 +352,7 @@ popup_make_pane(struct popup_data *pd, enum layout_type type) new_wp = window_add_pane(wp->window, NULL, hlimit, 0); layout_assign_pane(lc, new_wp, 0); - if (pd->job) + if (pd->job != NULL) new_wp->fd = job_transfer(pd->job, &new_wp->pid, new_wp->tty, sizeof new_wp->tty); pd->job = NULL;