mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-11 13:59:50 -05:00
Make autocompletion of LuaConsole not crash
This commit is contained in:
+1
-1
Submodule ext/ghoul updated: 57b2840dea...d04752c87d
@@ -38,6 +38,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <fstream>
|
||||
|
||||
#include <sgct.h>
|
||||
@@ -221,7 +222,7 @@ void LuaConsole::keyboardCallback(Key key, KeyModifier modifier, KeyAction actio
|
||||
std::string commandLowerCase;
|
||||
std::transform(
|
||||
command.begin(), command.end(),
|
||||
commandLowerCase.begin(),
|
||||
std::back_inserter(commandLowerCase),
|
||||
::tolower
|
||||
);
|
||||
|
||||
@@ -229,7 +230,7 @@ void LuaConsole::keyboardCallback(Key key, KeyModifier modifier, KeyAction actio
|
||||
std::transform(
|
||||
_autoCompleteInfo.initialValue.begin(),
|
||||
_autoCompleteInfo.initialValue.end(),
|
||||
initialValueLowerCase.begin(),
|
||||
std::back_inserter(initialValueLowerCase),
|
||||
::tolower
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user