]> granicus.if.org Git - icinga2/commitdiff
Fix: Autocompletion doesn't work in the debugger
authorGunnar Beutner <gunnar@beutner.name>
Sat, 7 Nov 2015 09:17:55 +0000 (10:17 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 7 Nov 2015 09:17:55 +0000 (10:17 +0100)
fixes #10559

lib/cli/consolecommand.cpp

index 435a58cba6c6f1067f1a2a4043c7001b4c27ff18..96877e7c1787134f4aa0f3522b33ede6d5ab900b 100644 (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";
 
+#ifdef HAVE_EDITLINE
+       rl_completion_entry_function = ConsoleCommand::ConsoleCompleteHelper;
+       rl_completion_append_character = '\0';
+#endif /* HAVE_EDITLINE */
+
        ConsoleCommand::RunScriptConsole(frame);
 }