aboutsummaryrefslogtreecommitdiffstats
path: root/linein.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-06 15:48:35 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-06 15:48:35 +0000
commitca7dc64d2591352c86138c2246ffa33e1b4135e8 (patch)
treed203ef408ea2b57d657441d42609f92ae743d2da /linein.c
parent[w3m-dev 02633] (diff)
downloadw3m-ca7dc64d2591352c86138c2246ffa33e1b4135e8.tar.gz
w3m-ca7dc64d2591352c86138c2246ffa33e1b4135e8.zip
[w3m-dev 02629]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'linein.c')
-rw-r--r--linein.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/linein.c b/linein.c
index 5612e00..48735de 100644
--- a/linein.c
+++ b/linein.c
@@ -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 "local.h"
#include "myctype.h"
@@ -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);