Minor fixes.

This commit is contained in:
Martín Lucas Golini
2024-12-27 01:03:49 -03:00
parent 524ea4da15
commit 48772bc6d3
4 changed files with 11 additions and 10 deletions

View File

@@ -378,7 +378,7 @@ void LSPDocumentClient::highlight() {
[this, firstLine, lastLine]( UICodeEditor* editor ) {
if ( editor->isVisible() && &editor->getDocument() == mDoc &&
editor->getVisibleRange().intersectsLineRange( firstLine, lastLine ) ) {
editor->invalidateDraw();
editor->runOnMainThread( [editor] { editor->invalidateDraw(); } );
}
} );
}