1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

unblock_itrm(): drop useless intermediate variable.

This commit is contained in:
Laurent MONIN 2005-09-16 13:55:40 +02:00 committed by Laurent MONIN
parent a3787a29c1
commit a45e48d86f

View File

@ -320,18 +320,16 @@ unblock_itrm_x(void *h)
int int
unblock_itrm(int fd) unblock_itrm(int fd)
{ {
struct itrm *itrm = ditrm; if (!ditrm) return -1;
if (!itrm) return -1; if (ditrm->in.ctl >= 0 && setraw(ditrm->in.ctl, NULL)) return -1;
ditrm->blocked = 0;
send_init_sequence(ditrm->out.std, ditrm->altscreen);
if (itrm->in.ctl >= 0 && setraw(itrm->in.ctl, NULL)) return -1; handle_itrm_stdin(ditrm);
itrm->blocked = 0; resume_mouse(ditrm->mouse_h);
send_init_sequence(itrm->out.std, itrm->altscreen);
handle_itrm_stdin(itrm); handle_terminal_resize(ditrm->in.ctl, resize_terminal);
resume_mouse(itrm->mouse_h);
handle_terminal_resize(itrm->in.ctl, resize_terminal);
unblock_stdin(); unblock_stdin();
return 0; return 0;