mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 11:18:22 -05:00
Make autocompletion of LuaConsole work
This commit is contained in:
@@ -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, "" };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user