mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-31 14:07:38 +00:00
Fix Ctrl U/W behaviour to work with unicode text
This commit is contained in:
parent
2b144ff3dd
commit
a616af822e
1 changed files with 2 additions and 2 deletions
|
@ -249,7 +249,7 @@ namespace MWGui
|
|||
size_t length = mCommandLine->getTextCursor() - max;
|
||||
if(length > 0)
|
||||
{
|
||||
std::string text = caption;
|
||||
auto text = caption;
|
||||
text.erase(max, length);
|
||||
mCommandLine->setCaption(text);
|
||||
mCommandLine->setTextCursor(max);
|
||||
|
@ -259,7 +259,7 @@ namespace MWGui
|
|||
{
|
||||
if(mCommandLine->getTextCursor() > 0)
|
||||
{
|
||||
std::string text = mCommandLine->getCaption();
|
||||
auto text = mCommandLine->getCaption();
|
||||
text.erase(0, mCommandLine->getTextCursor());
|
||||
mCommandLine->setCaption(text);
|
||||
mCommandLine->setTextCursor(0);
|
||||
|
|
Loading…
Reference in a new issue