From 3263518a4984d4c5605c0c43df93de6dc917e411 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 3 Feb 2003 15:49:13 +0000 Subject: [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 --- buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buffer.c') 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 || -- cgit v1.2.3