Fix: Autocompletion doesn't work in the debugger

fixes #10559
This commit is contained in:
Gunnar Beutner 2015-11-07 10:17:55 +01:00
parent b89a7dbdb6
commit a6c411c6cb
1 changed files with 5 additions and 0 deletions

View File

@ -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"; 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); ConsoleCommand::RunScriptConsole(frame);
} }