mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 09:28:51 +00:00
Adjust overlay check callback before drawing data from pty.
This commit is contained in:
parent
7789639b5d
commit
92615b534a
9
popup.c
9
popup.c
@ -489,9 +489,16 @@ popup_job_update_cb(struct job *job)
|
|||||||
if (size == 0)
|
if (size == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
c->overlay_check = NULL;
|
if (pd->md != NULL) {
|
||||||
|
c->overlay_check = menu_check_cb;
|
||||||
|
c->overlay_data = pd->md;
|
||||||
|
} else {
|
||||||
|
c->overlay_check = NULL;
|
||||||
|
c->overlay_data = NULL;
|
||||||
|
}
|
||||||
input_parse_screen(pd->ictx, s, popup_init_ctx_cb, pd, data, size);
|
input_parse_screen(pd->ictx, s, popup_init_ctx_cb, pd, data, size);
|
||||||
c->overlay_check = popup_check_cb;
|
c->overlay_check = popup_check_cb;
|
||||||
|
c->overlay_data = pd;
|
||||||
|
|
||||||
evbuffer_drain(evb, size);
|
evbuffer_drain(evb, size);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user