Widgets/RichTextAreaWidget: Fix backspace
This commit is contained in:
parent
557da10dc6
commit
f7df4f56b4
|
|
@ -77,7 +77,7 @@ namespace Nz
|
||||||
std::size_t characterPosition = GetCharacterPosition(blockText, firstGlyph - blockFirstGlyph);
|
std::size_t characterPosition = GetCharacterPosition(blockText, firstGlyph - blockFirstGlyph);
|
||||||
NazaraAssert(characterPosition != std::string::npos, "Invalid character position");
|
NazaraAssert(characterPosition != std::string::npos, "Invalid character position");
|
||||||
|
|
||||||
newText.append(blockText.substr(0, characterPosition - 1));
|
newText.append(blockText.substr(0, characterPosition));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastGlyph < textLength)
|
if (lastGlyph < textLength)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue