Browse Source

Fixes search hit painting bug (hit partially out of the view)

devmil 4 years ago
parent
commit
289187fe05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/frontend/terminal_painters.dart

+ 1 - 1
lib/frontend/terminal_painters.dart

@@ -182,7 +182,7 @@ class TerminalPainter extends CustomPainter {
 
 
       final offsetY = row * charSize.cellHeight;
       final offsetY = row * charSize.cellHeight;
 
 
-      if (row >= visibleLines.length) {
+      if (row >= visibleLines.length || row < 0) {
         continue;
         continue;
       }
       }