mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-24 05:00:31 -04:00
Merge branch 'you_and_i_code' into 'master'
Fix Ctrl U/W behaviour to work with unicode text See merge request OpenMW/openmw!621
This commit is contained in:
commit
a292a31cb3
@ -249,7 +249,7 @@ namespace MWGui
|
|||||||
size_t length = mCommandLine->getTextCursor() - max;
|
size_t length = mCommandLine->getTextCursor() - max;
|
||||||
if(length > 0)
|
if(length > 0)
|
||||||
{
|
{
|
||||||
std::string text = caption;
|
auto text = caption;
|
||||||
text.erase(max, length);
|
text.erase(max, length);
|
||||||
mCommandLine->setCaption(text);
|
mCommandLine->setCaption(text);
|
||||||
mCommandLine->setTextCursor(max);
|
mCommandLine->setTextCursor(max);
|
||||||
@ -259,7 +259,7 @@ namespace MWGui
|
|||||||
{
|
{
|
||||||
if(mCommandLine->getTextCursor() > 0)
|
if(mCommandLine->getTextCursor() > 0)
|
||||||
{
|
{
|
||||||
std::string text = mCommandLine->getCaption();
|
auto text = mCommandLine->getCaption();
|
||||||
text.erase(0, mCommandLine->getTextCursor());
|
text.erase(0, mCommandLine->getTextCursor());
|
||||||
mCommandLine->setCaption(text);
|
mCommandLine->setCaption(text);
|
||||||
mCommandLine->setTextCursor(0);
|
mCommandLine->setTextCursor(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user