aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-02-03 15:49:13 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-02-03 15:49:13 +0000
commit3263518a4984d4c5605c0c43df93de6dc917e411 (patch)
treeef082ee8e0b5ff6e87471b1e5b17d0bbeb00cbab /display.c
parentfix indent (diff)
downloadw3m-3263518a4984d4c5605c0c43df93de6dc917e411.tar.gz
w3m-3263518a4984d4c5605c0c43df93de6dc917e411.zip
[w3m-dev 03724] Re: view source, edit source
* buffer.c (reshapeBuffer): initialize buf->width first * display.c (displayBuffer): no need to check buf>sourcefile From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--display.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/display.c b/display.c
index beb916f..a537e1e 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.60 2003/01/29 17:38:14 ukai Exp $ */
+/* $Id: display.c,v 1.61 2003/02/03 15:49:21 ukai Exp $ */
#include <signal.h>
#include "fm.h"
@@ -363,10 +363,9 @@ displayBuffer(Buffer *buf, int mode)
buf->width = INIT_BUFFER_WIDTH;
if (buf->height == 0)
buf->height = LASTLINE + 1;
- if (buf->sourcefile &&
- ((buf->width != INIT_BUFFER_WIDTH &&
- ((buf->type && !strcmp(buf->type, "text/html")) || FoldLine))
- || buf->need_reshape)) {
+ if ((buf->width != INIT_BUFFER_WIDTH &&
+ ((buf->type && !strcmp(buf->type, "text/html")) || FoldLine))
+ || buf->need_reshape) {
buf->need_reshape = TRUE;
reshapeBuffer(buf);
}