diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:45:29 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:45:29 +0000 |
commit | 2945f70be161735bf7efaefde43125a9ad3a4c88 (patch) | |
tree | da85d4bca39cba5a7c4e6714c8b73d6a8cd547fe /buffer.c | |
parent | Releasing debian version 0.5.2-10 (diff) | |
download | w3m-2945f70be161735bf7efaefde43125a9ad3a4c88.tar.gz w3m-2945f70be161735bf7efaefde43125a9ad3a4c88.zip |
Releasing debian version 0.5.3-1debian/0.5.3-1
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: buffer.c,v 1.29 2003/09/26 17:59:51 ukai Exp $ */ +/* $Id: buffer.c,v 1.30 2010/07/18 14:10:09 htrb Exp $ */ #include "fm.h" #ifdef USE_MOUSE @@ -558,7 +558,7 @@ reshapeBuffer(Buffer *buf) WcOption.auto_detect = WC_OPT_DETECT_OFF; UseContentCharset = FALSE; #endif - if (!strcasecmp(buf->type, "text/html")) + if (is_html_type(buf->type)) loadHTMLBuffer(&f, buf); else loadBuffer(&f, buf); @@ -590,7 +590,7 @@ reshapeBuffer(Buffer *buf) gotoLine(buf, cur->linenumber); } buf->pos -= buf->currentLine->bpos; - if (FoldLine && strcasecmp(buf->type, "text/html")) + if (FoldLine && !is_html_type(buf->type)) buf->currentColumn = 0; else buf->currentColumn = sbuf.currentColumn; |