[w3m-dev 02629]

From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2001-12-06 15:48:35 +00:00
parent 8e1eed3dc1
commit ca7dc64d25
2 changed files with 14 additions and 5 deletions

View File

@@ -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> 2001-12-07 Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 02633] * [w3m-dev 02633]

View File

@@ -1,4 +1,4 @@
/* $Id: linein.c,v 1.10 2001/12/02 16:26:08 ukai Exp $ */ /* $Id: linein.c,v 1.11 2001/12/06 15:48:35 ukai Exp $ */
#include "fm.h" #include "fm.h"
#include "local.h" #include "local.h"
#include "myctype.h" #include "myctype.h"
@@ -676,11 +676,15 @@ next_compl(int next)
return; return;
cm_clear = FALSE; cm_clear = FALSE;
if (!cm_next) { if (!cm_next) {
for (b = CPos - 1; b >= 0; b--) { if (cm_mode & CPL_ALWAYS) {
if (strBuf->ptr[b] == ' ' || strBuf->ptr[b] == CTRL_I) b = 0;
break; } else {
for (b = CPos - 1; b >= 0; b--) {
if (strBuf->ptr[b] == ' ' || strBuf->ptr[b] == CTRL_I)
break;
}
b++;
} }
b++;
a = CPos; a = CPos;
CBeforeBuf = Strsubstr(strBuf, 0, b); CBeforeBuf = Strsubstr(strBuf, 0, b);
buf = Strsubstr(strBuf, b, a - b); buf = Strsubstr(strBuf, b, a - b);