aboutsummaryrefslogtreecommitdiffstats
path: root/linein.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;