Make autocompletion of LuaConsole work

This commit is contained in:
Alexander Bock
2016-02-05 18:47:57 +01:00
parent 32cd2d69b9
commit 72eb4dc6fd
+4
View File
@@ -261,6 +261,10 @@ void LuaConsole::keyboardCallback(Key key, KeyModifier modifier, KeyAction actio
else {
_commands.at(_activeCommand) = command.substr(0, pos + 1);
_inputPosition = _commands.at(_activeCommand).length();
// We only want to remove the autocomplete info if we just
// entered the 'default' openspace namespace
if (command.substr(0, pos + 1) == "openspace.")
_autoCompleteInfo = { NoAutoComplete, false, "" };
}
}