From faaf7e481fbadc2ef520a96b638dd910f3c9ff14 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 16 Aug 2018 14:38:05 -0300 Subject: [PATCH] Removed use of 'rl_inhibit_completion' in 'lua.c' Some old systems (e.g., Mac OS X 10.4) do not define 'rl_inhibit_completion', even when line history is available. Anyway, the user can configure this option externally, using '~/.inputrc'. --- lua.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua.c b/lua.c index ae783a0d..fa534ba2 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.234 2018/03/06 20:30:17 roberto Exp roberto $ +** $Id: lua.c $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -383,8 +383,7 @@ static int handle_luainit (lua_State *L) { #include #include -#define lua_initreadline(L) \ - ((void)L, rl_readline_name="lua", rl_inhibit_completion=1) +#define lua_initreadline(L) ((void)L, rl_readline_name="lua") #define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL) #define lua_saveline(L,line) ((void)L, add_history(line)) #define lua_freeline(L,b) ((void)L, free(b))