mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Adjust overlay check callback before drawing data from pty.
This commit is contained in:
parent
7789639b5d
commit
92615b534a
7
popup.c
7
popup.c
@ -489,9 +489,16 @@ popup_job_update_cb(struct job *job)
|
||||
if (size == 0)
|
||||
return;
|
||||
|
||||
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);
|
||||
c->overlay_check = popup_check_cb;
|
||||
c->overlay_data = pd;
|
||||
|
||||
evbuffer_drain(evb, size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user