From a6c411c6cbaecce44cfe70feb68f044195bab9b4 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 7 Nov 2015 10:17:55 +0100 Subject: [PATCH] Fix: Autocompletion doesn't work in the debugger fixes #10559 --- lib/cli/consolecommand.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cli/consolecommand.cpp b/lib/cli/consolecommand.cpp index 435a58cba..96877e7c1 100644 --- a/lib/cli/consolecommand.cpp +++ b/lib/cli/consolecommand.cpp @@ -68,6 +68,11 @@ void ConsoleCommand::BreakpointHandler(ScriptFrame& frame, ScriptError *ex, cons std::cout << "You can leave the debugger and continue the program with \"$quit\".\n"; +#ifdef HAVE_EDITLINE + rl_completion_entry_function = ConsoleCommand::ConsoleCompleteHelper; + rl_completion_append_character = '\0'; +#endif /* HAVE_EDITLINE */ + ConsoleCommand::RunScriptConsole(frame); }