w3m

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

commit 7a400dab803f0309a0a00a751dd0d86dc0447a11
parent 393695678d5cfc8c82692fa4f804057b7af47aa4
Author: ukai <ukai>
Date:   Thu,  6 Dec 2001 15:48:35 +0000

[w3m-dev 02629]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mlinein.c | 12++++++++----
2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2001-12-07 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 02629] + * linein.c (next_compl): completion for name including space + 2001-12-07 Fumitoshi UKAI <ukai@debian.or.jp> * [w3m-dev 02633] diff --git a/linein.c b/linein.c @@ -676,11 +676,15 @@ next_compl(int next) return; cm_clear = FALSE; if (!cm_next) { - for (b = CPos - 1; b >= 0; b--) { - if (strBuf->ptr[b] == ' ' || strBuf->ptr[b] == CTRL_I) - break; + if (cm_mode & CPL_ALWAYS) { + b = 0; + } else { + for (b = CPos - 1; b >= 0; b--) { + if (strBuf->ptr[b] == ' ' || strBuf->ptr[b] == CTRL_I) + break; + } + b++; } - b++; a = CPos; CBeforeBuf = Strsubstr(strBuf, 0, b); buf = Strsubstr(strBuf, b, a - b);