parent
f969b37c3e
commit
6a3f93a295
|
@ -1045,10 +1045,12 @@ void CelestiaCore::charEntered(const char *c_p, int modifiers)
|
||||||
if (typedText != "")
|
if (typedText != "")
|
||||||
{
|
{
|
||||||
Selection sel = sim->findObjectFromPath(typedText, true);
|
Selection sel = sim->findObjectFromPath(typedText, true);
|
||||||
|
#ifdef AUTO_COMPLETION
|
||||||
if (sel.empty() && typedTextCompletion.size() > 0)
|
if (sel.empty() && typedTextCompletion.size() > 0)
|
||||||
{
|
{
|
||||||
sel = sim->findObjectFromPath(typedTextCompletion[0], true);
|
sel = sim->findObjectFromPath(typedTextCompletion[0], true);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (!sel.empty())
|
if (!sel.empty())
|
||||||
{
|
{
|
||||||
addToHistory();
|
addToHistory();
|
||||||
|
|
Loading…
Reference in New Issue