@@ -47,7 +47,7 @@ def __init__(self):
47
47
self ._font_name = 'Monospace'
48
48
self ._screen = None
49
49
self ._attrs = None
50
- self ._cursor_enabled = False
50
+ self ._busy = True
51
51
self ._mouse_enabled = False
52
52
self ._insert_cursor = False
53
53
self ._blink = False
@@ -143,11 +143,11 @@ def _nvim_eol_clear(self):
143
143
def _nvim_cursor_goto (self , row , col ):
144
144
self ._screen .cursor_goto (row , col )
145
145
146
- def _nvim_cursor_on (self ):
147
- self ._cursor_enabled = True
146
+ def _nvim_busy_start (self ):
147
+ self ._busy = True
148
148
149
- def _nvim_cursor_off (self ):
150
- self ._cursor_enabled = False
149
+ def _nvim_busy_stop (self ):
150
+ self ._busy = False
151
151
152
152
def _nvim_mouse_on (self ):
153
153
self ._mouse_enabled = True
@@ -268,7 +268,7 @@ def _gtk_draw(self, wid, cr):
268
268
cr .set_source_surface (self ._cairo_surface , 0 , 0 )
269
269
cr .paint ()
270
270
cr .restore ()
271
- if self ._cursor_enabled and self ._blink :
271
+ if not self ._busy and self ._blink :
272
272
# Cursor is drawn separately in the window. This approach is
273
273
# simpler because it doesn't taint the internal cairo surface,
274
274
# which is used for scrolling
0 commit comments