Browse Source

Fixes visibility when not focused

devmil 4 năm trước cách đây
mục cha
commit
6fba711b4f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      lib/frontend/terminal_painters.dart

+ 2 - 1
lib/frontend/terminal_painters.dart

@@ -223,7 +223,8 @@ class CursorPainter extends CustomPainter {
 
   @override
   void paint(Canvas canvas, Size size) {
-    bool isVisible = visible && (blinkVisible || composingString != '');
+    bool isVisible =
+        visible && (blinkVisible || composingString != '' || !focused);
     if (isVisible) {
       _paintCursor(canvas);
     }