mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Turn off overlay check when we know we are inside.
This commit is contained in:
parent
3f1fc9cde3
commit
1fa9bcc183
9
popup.c
9
popup.c
@ -367,6 +367,7 @@ popup_job_update_cb(struct job *job)
|
|||||||
{
|
{
|
||||||
struct popup_data *pd = job_get_data(job);
|
struct popup_data *pd = job_get_data(job);
|
||||||
struct evbuffer *evb = job_get_event(job)->input;
|
struct evbuffer *evb = job_get_event(job)->input;
|
||||||
|
struct client *c = pd->c;
|
||||||
struct screen *s = &pd->s;
|
struct screen *s = &pd->s;
|
||||||
void *data = EVBUFFER_DATA(evb);
|
void *data = EVBUFFER_DATA(evb);
|
||||||
size_t size = EVBUFFER_LENGTH(evb);
|
size_t size = EVBUFFER_LENGTH(evb);
|
||||||
@ -374,9 +375,13 @@ popup_job_update_cb(struct job *job)
|
|||||||
if (size == 0)
|
if (size == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pd->c->tty.flags &= ~TTY_FREEZE;
|
c->overlay_check = NULL;
|
||||||
|
c->tty.flags &= ~TTY_FREEZE;
|
||||||
|
|
||||||
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);
|
||||||
pd->c->tty.flags |= TTY_FREEZE;
|
|
||||||
|
c->tty.flags |= TTY_FREEZE;
|
||||||
|
c->overlay_check = popup_check_cb;
|
||||||
|
|
||||||
evbuffer_drain(evb, size);
|
evbuffer_drain(evb, size);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user