1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-24 09:39:51 +00:00

Make tab autocompletion work with explicit reference calls

This commit is contained in:
Capostrophic 2018-08-02 03:16:33 +03:00 committed by Capostrophic
parent 1c13256456
commit fa6c205e5d
2 changed files with 9 additions and 0 deletions

View File

@ -12,6 +12,7 @@
Bug #2835: Player able to slowly move when overencumbered
Bug #2852: No murder bounty when a player follower commits murder
Bug #2862: [macOS] Can't quit launcher using Command-Q or OpenMW->Quit
Bug #2872: Tab completion in console doesn't work with explicit reference
Bug #2971: Compiler did not reject lines with naked expressions beginning with x.y
Bug #3249: Fixed revert function not updating views properly
Bug #3374: Touch spells not hitting kwama foragers

View File

@ -339,6 +339,14 @@ namespace MWGui
}
}
}
// Erase a possible call to an explicit reference
size_t explicitPos = tmp.find("->");
if (explicitPos != std::string::npos)
{
tmp.erase(0, explicitPos+2);
}
/* Erase the input from the output string so we can easily append the completed form later. */
output.erase(output.end()-tmp.length(), output.end());