aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorIto Hiroyuki <ZXB01226@nifty.com>2010-07-18 14:10:09 +0000
committerIto Hiroyuki <ZXB01226@nifty.com>2010-07-18 14:10:09 +0000
commit6a2579bb264742a07cdbbd52c21cb6d74324ddef (patch)
treeb18c8bb5e238fc8903cf2a3b7dd4665e41b4b04d /display.c
parentset line->size (diff)
downloadw3m-6a2579bb264742a07cdbbd52c21cb6d74324ddef.tar.gz
w3m-6a2579bb264742a07cdbbd52c21cb6d74324ddef.zip
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=242599#21
* file.c (is_html_type): added. (examineFile, loadGeneralFile, _saveBuffer) (openGeneralPagerBuffer, reloadBuffer): use is_html_type() instead of strcasecmp(). (loadGeneralFile): set f.guess_tupe * display.c (displayBuffer): use is_html_type() instead of strcasecmp(). * buffer.c (reshapeBuffer): use is_html_type() instead of strcasecmp(). * backend.c (internal_get): use is_html_type() instead of strcasecmp().
Diffstat (limited to '')
-rw-r--r--display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/display.c b/display.c
index 386c42f..e00eb0c 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.70 2007/05/29 12:07:02 inu Exp $ */
+/* $Id: display.c,v 1.71 2010/07/18 14:10:09 htrb Exp $ */
#include <signal.h>
#include "fm.h"
@@ -380,7 +380,7 @@ displayBuffer(Buffer *buf, int mode)
if (buf->height == 0)
buf->height = LASTLINE + 1;
if ((buf->width != INIT_BUFFER_WIDTH &&
- ((buf->type && !strcmp(buf->type, "text/html")) || FoldLine))
+ (is_html_type(buf->type) || FoldLine))
|| buf->need_reshape) {
buf->need_reshape = TRUE;
reshapeBuffer(buf);