aboutsummaryrefslogtreecommitdiffstats
path: root/buffer.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 /buffer.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 'buffer.c')
-rw-r--r--buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/buffer.c b/buffer.c
index 0cbc168..f3165c1 100644
--- a/buffer.c
+++ b/buffer.c
@@ -1,4 +1,4 @@
-/* $Id: buffer.c,v 1.26 2003/01/28 16:42:02 ukai Exp $ */
+/* $Id: buffer.c,v 1.27 2003/02/03 15:49:19 ukai Exp $ */
#include "fm.h"
#ifdef USE_MOUSE
@@ -500,6 +500,7 @@ reshapeBuffer(Buffer *buf)
if (!buf->need_reshape)
return;
buf->need_reshape = FALSE;
+ buf->width = INIT_BUFFER_WIDTH;
if (buf->sourcefile == NULL)
return;
init_stream(&f, SCM_LOCAL, NULL);
@@ -525,7 +526,6 @@ reshapeBuffer(Buffer *buf)
buf->hmarklist->nmark = 0;
if (buf->imarklist)
buf->imarklist->nmark = 0;
- buf->width = INIT_BUFFER_WIDTH;
if (buf->header_source) {
if (buf->currentURL.scheme != SCM_LOCAL ||