xuty 4 жил өмнө
parent
commit
3296e1078e

+ 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;