aboutsummaryrefslogtreecommitdiffstats
path: root/linein.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-04-14 16:19:27 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-04-14 16:19:27 +0000
commitf91cf5690f3ee1a7d6ea3b28c4f139fee2d73338 (patch)
tree0583c2cd3bbc89203dc849b6e4d51e309f1531e1 /linein.c
parent[w3m-dev 03875] Re: SSL & compressed stream (diff)
downloadw3m-f91cf5690f3ee1a7d6ea3b28c4f139fee2d73338.tar.gz
w3m-f91cf5690f3ee1a7d6ea3b28c4f139fee2d73338.zip
[w3m-dev 03878] I-search problem
* linein.c (inputLineHistSearch): don't call incrfunc twice * main.c (dispincsrch): fix search loop problem From: Masanori Kobayasi <zap03216@nifty.ne.jp>
Diffstat (limited to 'linein.c')
-rw-r--r--linein.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linein.c b/linein.c
index 17ce936..c8e10c1 100644
--- a/linein.c
+++ b/linein.c
@@ -1,4 +1,4 @@
-/* $Id: linein.c,v 1.30 2003/04/06 16:27:54 ukai Exp $ */
+/* $Id: linein.c,v 1.31 2003/04/14 16:19:28 ukai Exp $ */
#include "fm.h"
#include "local.h"
#include "myctype.h"
@@ -226,7 +226,7 @@ inputLineHistSearch(char *prompt, char *def_str, int flag, Hist *hist,
if (incrfunc == NULL
|| (c = incrfunc((int)c, strBuf, strProp)) < 0x20)
(*InputKeymap[(int)c]) (c);
- if (incrfunc)
+ if (incrfunc && c != (unsigned char)-1 && c != CTRL_J)
incrfunc(-1, strBuf, strProp);
if (cm_clear)
cm_next = FALSE;