mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix IME issue (fixes #4888)
by terminating string instead of assuming that rest of chars are \0, which was just luckily true before.
This commit is contained in:
parent
2c1dfb3684
commit
27488f042f
|
@ -70,6 +70,7 @@ void CLineInput::Editing(const char *pString, int Cursor)
|
|||
m_aDisplayStr[i + FillCharLen] = m_aDisplayStr[i];
|
||||
for(int i = 0; i < FillCharLen; i++)
|
||||
m_aDisplayStr[m_CursorPos + i] = aEditingText[i];
|
||||
m_aDisplayStr[m_CursorPos + FillCharLen] = '\0';
|
||||
m_FakeLen = str_length(m_aDisplayStr);
|
||||
m_FakeCursorPos = m_CursorPos + Cursor + 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue