aboutsummaryrefslogtreecommitdiffstats
path: root/buffer.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-15 15:51:23 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-15 15:51:23 +0000
commit073f8a91054a0b84fc2a3c6feaada832d2818bf7 (patch)
treedb50876cd427e92a1173013500373b04e40e4778 /buffer.c
parentfix indent (diff)
downloadw3m-073f8a91054a0b84fc2a3c6feaada832d2818bf7.tar.gz
w3m-073f8a91054a0b84fc2a3c6feaada832d2818bf7.zip
[w3m-dev 03435] save image with SAVE
* buffer.c (discardBuffer): check image * file.c (loadImageBuffer): add st IMG_FLAG_DONE_REMOVE s/sourcefile/mailcap_source/ * fm.h (IMG_FLAG_DONT_REMOVE): added * image.c (drawImage): & IMG_FLAG_LOADED (deleteImage): & IMG_FLAG_DONT_REMOVE (showImageProgress): & IMG_FLAG_LOADED (getImage): & IMG_FLAG_LOADED (getImageSize): & IMG_FLAG_LOADED * main.c (vmSrc): delete ifdef USE_IMAGE From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/buffer.c b/buffer.c
index 5c5b246..30043bf 100644
--- a/buffer.c
+++ b/buffer.c
@@ -1,4 +1,4 @@
-/* $Id: buffer.c,v 1.14 2002/11/08 15:54:46 ukai Exp $ */
+/* $Id: buffer.c,v 1.15 2002/11/15 15:51:23 ukai Exp $ */
#include "fm.h"
#ifdef USE_MOUSE
@@ -97,7 +97,8 @@ discardBuffer(Buffer *buf)
return;
if (buf->pagerSource)
ISclose(buf->pagerSource);
- if (buf->sourcefile) {
+ if (buf->sourcefile &&
+ (!buf->real_type || strncasecmp(buf->real_type, "image/", 6))) {
if (buf->real_scheme != SCM_LOCAL || buf->bufferprop & BP_FRAME)
unlink(buf->sourcefile);
}