Parcourir la source

cursor width at lease 1

xuty il y a 4 ans
Parent
commit
3296e1078e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/frontend/terminal_view.dart

+ 1 - 1
lib/frontend/terminal_view.dart

@@ -521,7 +521,7 @@ class TerminalPainter extends CustomPainter {
     }
 
     final width = charSize.cellWidth *
-        terminal.buffer.currentLine.cellGetWidth(terminal.cursorX);
+        terminal.buffer.currentLine.cellGetWidth(terminal.cursorX).clamp(1, 2);
 
     final offsetX = charSize.cellWidth * terminal.cursorX;
     final offsetY = charSize.cellHeight * screenCursorY;