w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit ed8384d0b7298f871b473acc12387561c0608059
parent d0b96765d9df3ac74d97594d545647d236c2f38b
Author: ukai <ukai>
Date:   Fri, 16 Nov 2001 03:32:18 +0000

[w3m-dev 02414] stable SIGINT handling in HTMLlineproc0()
From: Tsutomu Okada <okada@furuno.co.jp>

Diffstat:
Mfile.c | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/file.c b/file.c @@ -4823,15 +4823,6 @@ loadHTMLstream(URLFile * f, Buffer * newBuf, FILE * src, int internal) struct readbuffer obuf; MySignalHandler(*prevtrap) (); - if (SETJMP(AbortLoading) != 0) { - HTMLlineproc1("<br>Transfer Interrupted!<br>", &htmlenv1); - goto phase2; - } - if (fmInitialized) { - prevtrap = signal(SIGINT, KeyAbort); - term_cbreak(); - } - n_textarea = 0; cur_textarea = NULL; max_textarea = MAX_TEXTAREA; @@ -4869,6 +4860,15 @@ loadHTMLstream(URLFile * f, Buffer * newBuf, FILE * src, int internal) else htmlenv1.buf = newTextLineList(); + if (SETJMP(AbortLoading) != 0) { + HTMLlineproc1("<br>Transfer Interrupted!<br>", &htmlenv1); + goto phase2; + } + if (fmInitialized) { + prevtrap = signal(SIGINT, KeyAbort); + term_cbreak(); + } + #ifdef JP_CHARSET if (newBuf != NULL && newBuf->document_code != '\0') code = newBuf->document_code;