[*] Added missing signal redraws
This commit is contained in:
parent
fc097de2da
commit
eb13a3c0d1
@ -59,11 +59,16 @@ namespace Aurora::Console::ConsoleTTY
|
||||
|
||||
void TTYConsoleField::DoUnselectTick()
|
||||
{
|
||||
auto lastState = this->highlightStartInBytes.HasValue();
|
||||
this->bIsSelecting = false;
|
||||
AuResetMember(this->highlightEndInBytes);
|
||||
AuResetMember(this->highlightEndInPos);
|
||||
AuResetMember(this->highlightStartInBytes);
|
||||
AuResetMember(this->highlightStart);
|
||||
if (lastState)
|
||||
{
|
||||
this->pParent->SignalRedraw();
|
||||
}
|
||||
}
|
||||
|
||||
void TTYConsoleField::WriteBuffered(TTYConsole *pConsole, AuPair<AuUInt32, AuUInt32> pos)
|
||||
@ -166,9 +171,9 @@ namespace Aurora::Console::ConsoleTTY
|
||||
auto noncanonicalCursorPos = this->highlightStart ? this->highlightStart.value() : this->noncanonicalCursorPos;
|
||||
auto noncanonicalCursorPosInBytes = this->highlightStart ? this->highlightStartInBytes.value() : this->noncanonicalCursorPosInBytes;
|
||||
|
||||
auto getCurrentChar = [=](int Offset) -> int
|
||||
auto getCurrentChar = [=](int iOffset) -> int
|
||||
{
|
||||
auto uIndex = this->noncanonicalCursorPosInBytes + Offset;
|
||||
auto uIndex = this->noncanonicalCursorPosInBytes + iOffset;
|
||||
if (uIndex >= this->inputField.size()) return 4;
|
||||
|
||||
if (!(bool)isascii(this->inputField[uIndex]))
|
||||
@ -248,6 +253,8 @@ namespace Aurora::Console::ConsoleTTY
|
||||
this->highlightEndInPos = uEnd1;
|
||||
this->highlightStart = uStart1;
|
||||
this->highlightChars = AuLocale::Encoding::CountUTF8Length({ this->inputField.data() + uStart2, (AuUInt)uEnd2 - uStart2 }, false);
|
||||
|
||||
this->pParent->SignalRedraw();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user