aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-29 17:38:12 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-29 17:38:12 +0000
commit931a54afec82cbbc0eff2f08a3146de2aefe17f6 (patch)
treef79751e9584c5064fe0de616d543edbafec59e5c /display.c
parent[w3m-dev-en 00852] Re: Enhancement: content type detection of files (diff)
downloadw3m-931a54afec82cbbc0eff2f08a3146de2aefe17f6.tar.gz
w3m-931a54afec82cbbc0eff2f08a3146de2aefe17f6.zip
[w3m-dev 03709] Re: view source, edit source
* display.c (displayBuffer): INIT_BUFFER_WIDTH * file.c (_saveBuffer): added (saveBuffer): use _saveBuffer (saveBufferBody): added * main.c (vmSrc): saveBufferBody * proto.h (saveBufferBody): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'display.c')
-rw-r--r--display.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/display.c b/display.c
index 27cf475..beb916f 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.59 2003/01/29 17:10:27 ukai Exp $ */
+/* $Id: display.c,v 1.60 2003/01/29 17:38:14 ukai Exp $ */
#include <signal.h>
#include "fm.h"
@@ -360,13 +360,13 @@ displayBuffer(Buffer *buf, int mode)
}
if (buf->width == 0)
- buf->width = COLS;
+ buf->width = INIT_BUFFER_WIDTH;
if (buf->height == 0)
buf->height = LASTLINE + 1;
- if ((buf->width != INIT_BUFFER_WIDTH && ((buf->type &&
- !strcmp(buf->type, "text/html"))
- || FoldLine))
- || buf->need_reshape) {
+ if (buf->sourcefile &&
+ ((buf->width != INIT_BUFFER_WIDTH &&
+ ((buf->type && !strcmp(buf->type, "text/html")) || FoldLine))
+ || buf->need_reshape)) {
buf->need_reshape = TRUE;
reshapeBuffer(buf);
}