aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-03-13 15:48:20 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-03-13 15:48:20 +0000
commitdb2d61187d34d41221dd345bdfbb8741307b2f87 (patch)
treea3f814866bbcf3d46e0323a26d2a6ce213fbeafe /file.c
parent[w3m-dev 03116] Re: aligned block in <td align="center"> (diff)
downloadw3m-db2d61187d34d41221dd345bdfbb8741307b2f87.tar.gz
w3m-db2d61187d34d41221dd345bdfbb8741307b2f87.zip
[w3m-dev 03125] w3m -m < image
* file.c (openGeneralPagerBuffer): use internal viewer for -m option From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--file.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/file.c b/file.c
index fb48e36..580397c 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.82 2002/03/12 16:59:50 ukai Exp $ */
+/* $Id: file.c,v 1.83 2002/03/13 15:48:20 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -6675,6 +6675,15 @@ openGeneralPagerBuffer(InputStream stream)
buf = openPagerBuffer(stream, t_buf);
buf->type = "text/plain";
}
+#ifdef USE_IMAGE
+ else if (activeImage && displayImage && !useExtImageViewer &&
+ !(w3m_dump & ~DUMP_FRAME) && !strncasecmp(t, "image/", 6)) {
+ cur_baseURL = New(ParsedURL);
+ parseURL("-", cur_baseURL, NULL);
+ buf = loadImageBuffer(&uf, t_buf);
+ buf->type = t;
+ }
+#endif
else {
if (doExternal(uf, "-", t, &buf, t_buf)) {
if (buf == NULL || buf == NO_BUFFER)