w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 60e8546efbabc54aaf547133ea8e31ad37a021b6
parent 645e409794cbce0cbc1f2e44cb71d2d67d529bb8
Author: ukai <ukai>
Date:   Thu, 30 Jan 2003 16:48:40 +0000

[w3m-dev 03719] Re: Too slow when loading big file with fold_line=1
* file.c (addnewline): check i <l->len
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mfile.c | 2+-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,10 @@ 2003-01-31 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + * [w3m-dev 03719] Re: Too slow when loading big file with fold_line=1 + * file.c (addnewline): check i <l->len + +2003-01-31 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + * [w3m-dev 03718] Too slow when loading big file with fold_line=1 * etc.c (nextColumn): added (calcPosition): use New_N diff --git a/file.c b/file.c @@ -6134,7 +6134,7 @@ addnewline(Buffer *buf, char *line, Lineprop *prop, if (i == 0) { i++; #ifdef JP_CHARSET - if (CharType(p[i]) == PC_KANJI2) + if (i < l->len && CharType(p[i]) == PC_KANJI2) i++; #endif }