Widgets/RichTextAreaWidget: Fix backspace

This commit is contained in:
SirLynix 2023-08-24 17:47:41 +02:00
parent 557da10dc6
commit f7df4f56b4
1 changed files with 1 additions and 1 deletions

View File

@ -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)