diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-09 15:30:20 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-09 15:30:20 +0000 |
commit | 0cf4f52a13161e1ed57ecf4e682d3bb945528cb8 (patch) | |
tree | 9392549495a5321f60c061064b287b7777e9bfd7 /main.c | |
parent | [w3m-dev 03617] sourcefile when Content-Encoding: is specified. (diff) | |
download | w3m-0cf4f52a13161e1ed57ecf4e682d3bb945528cb8.tar.gz w3m-0cf4f52a13161e1ed57ecf4e682d3bb945528cb8.zip |
[w3m-dev 03619] Re: Error occured while reset
* file.c (process_img): check image.ext
(HTMLlineproc2body): check image.ext
(loadImageBuffer): url, ext is in URLFile
* frame.c (unloadFrame): no need to push to fileToDelete
(copyFrame): no need to reset FB_TODELETE
(resetFrameElement): f_body->source, buf->sourcefile
(frame_download_source): buf->source
buf->sourcefile reset
* frame.h (FB_NOCACHE): deleted
(FB_TODELETE): deleted
* main.c (vmSrc): Currentbuf->sourcefile
need_reshape if images exist
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.185 2003/01/08 17:24:13 ukai Exp $ */ +/* $Id: main.c,v 1.186 2003/01/09 15:30:48 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -4392,6 +4392,7 @@ vwSrc(void) saveBuffer(Currentbuf, f); fclose(f); fn = tmpf->ptr; + Currentbuf->sourcefile = fn; } else { return; @@ -4441,6 +4442,10 @@ vwSrc(void) Sprintf("HTML view of %s", Currentbuf->buffername)->ptr; buf->linkBuffer[LB_SOURCE] = Currentbuf; Currentbuf->linkBuffer[LB_N_SOURCE] = buf; +#ifdef USE_IMAGE + if (buf->img) + buf->need_reshape = TRUE; +#endif } else { return; |