[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:
@@ -1,3 +1,9 @@
|
|||||||
|
2003-02-04 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* [w3m-dev 03724] Re: view source, edit source
|
||||||
|
* buffer.c (reshapeBuffer): initialize buf->width first
|
||||||
|
* display.c (displayBuffer): no need to check buf>sourcefile
|
||||||
|
|
||||||
2003-02-01 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
|
2003-02-01 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
|
||||||
|
|
||||||
* [w3m-dev 03721] PATH_INFO support of local CGI
|
* [w3m-dev 03721] PATH_INFO support of local CGI
|
||||||
@@ -7008,4 +7014,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.734 2003/01/31 16:25:02 ukai Exp $
|
$Id: ChangeLog,v 1.735 2003/02/03 15:49:13 ukai Exp $
|
||||||
|
|||||||
4
buffer.c
4
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"
|
#include "fm.h"
|
||||||
|
|
||||||
#ifdef USE_MOUSE
|
#ifdef USE_MOUSE
|
||||||
@@ -500,6 +500,7 @@ reshapeBuffer(Buffer *buf)
|
|||||||
if (!buf->need_reshape)
|
if (!buf->need_reshape)
|
||||||
return;
|
return;
|
||||||
buf->need_reshape = FALSE;
|
buf->need_reshape = FALSE;
|
||||||
|
buf->width = INIT_BUFFER_WIDTH;
|
||||||
if (buf->sourcefile == NULL)
|
if (buf->sourcefile == NULL)
|
||||||
return;
|
return;
|
||||||
init_stream(&f, SCM_LOCAL, NULL);
|
init_stream(&f, SCM_LOCAL, NULL);
|
||||||
@@ -525,7 +526,6 @@ reshapeBuffer(Buffer *buf)
|
|||||||
buf->hmarklist->nmark = 0;
|
buf->hmarklist->nmark = 0;
|
||||||
if (buf->imarklist)
|
if (buf->imarklist)
|
||||||
buf->imarklist->nmark = 0;
|
buf->imarklist->nmark = 0;
|
||||||
buf->width = INIT_BUFFER_WIDTH;
|
|
||||||
|
|
||||||
if (buf->header_source) {
|
if (buf->header_source) {
|
||||||
if (buf->currentURL.scheme != SCM_LOCAL ||
|
if (buf->currentURL.scheme != SCM_LOCAL ||
|
||||||
|
|||||||
@@ -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 <signal.h>
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
|
|
||||||
@@ -363,10 +363,9 @@ displayBuffer(Buffer *buf, int mode)
|
|||||||
buf->width = INIT_BUFFER_WIDTH;
|
buf->width = INIT_BUFFER_WIDTH;
|
||||||
if (buf->height == 0)
|
if (buf->height == 0)
|
||||||
buf->height = LASTLINE + 1;
|
buf->height = LASTLINE + 1;
|
||||||
if (buf->sourcefile &&
|
if ((buf->width != INIT_BUFFER_WIDTH &&
|
||||||
((buf->width != INIT_BUFFER_WIDTH &&
|
((buf->type && !strcmp(buf->type, "text/html")) || FoldLine))
|
||||||
((buf->type && !strcmp(buf->type, "text/html")) || FoldLine))
|
|| buf->need_reshape) {
|
||||||
|| buf->need_reshape)) {
|
|
||||||
buf->need_reshape = TRUE;
|
buf->need_reshape = TRUE;
|
||||||
reshapeBuffer(buf);
|
reshapeBuffer(buf);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user