Explorar el Código

cursor width at lease 1

xuty hace 4 años
padre
commit
3296e1078e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;