Fixed a rendering bug in the terminal emulator when updated line only updated spaces.

Added an optimization for scene loading.
Do not allow the spell checker renderer to try to render on too long lines.
This commit is contained in:
Martín Lucas Golini
2026-05-04 19:30:56 -03:00
parent 19c0f15196
commit 336afe90d7
7 changed files with 38 additions and 11 deletions

View File

@@ -424,7 +424,8 @@ void SpellCheckerPlugin::drawAfterLineText( UICodeEditor* editor, const Int64& i
for ( size_t i = 0; i < matches.size(); ++i ) {
auto& match = matches[i];
if ( match.lineHash != doc->getLineHash( index ) )
if ( match.lineHash != doc->getLineHash( index ) ||
doc->getLineLength( index ) > ( EE_1KB * 10 ) )
return;
Text line( "", editor->getFont(), editor->getFontSize() );