[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>
This commit is contained in:
Fumitoshi UKAI
2003-02-03 15:49:13 +00:00
parent 585d713d9d
commit 3263518a49
3 changed files with 13 additions and 8 deletions

View File

@@ -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 ||