From d998ba1c3ca32260a111b85ddab1dd1e564b16f7 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 19 Jun 2012 02:58:40 +0000 Subject: * ext/readline/readline.c (readline_getc): fix editline compatibility broken by r36123. [Bug #6601] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/readline/readline.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/readline') diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 07c9268bb5..b6b46119ac 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -174,6 +174,7 @@ readline_getc(FILE *input) #endif c = rb_io_getbyte(readline_instream); if (NIL_P(c)) return EOF; +#ifdef ESC if (c == INT2FIX(ESC) && RL_ISSTATE(RL_STATE_ISEARCH) && /* isn't needed in other states? */ rb_io_read_pending(ifp)) { @@ -184,6 +185,7 @@ readline_getc(FILE *input) if (meta) rl_execute_next(ESC); return ESC; } +#endif return FIX2INT(c); } #elif defined HAVE_RL_EVENT_HOOK -- cgit v1.2.3