@@ -47,7 +47,7 @@ def __init__(self):
4747 self ._font_name = 'Monospace'
4848 self ._screen = None
4949 self ._attrs = None
50- self ._cursor_enabled = False
50+ self ._busy = True
5151 self ._mouse_enabled = False
5252 self ._insert_cursor = False
5353 self ._blink = False
@@ -143,11 +143,11 @@ def _nvim_eol_clear(self):
143143 def _nvim_cursor_goto (self , row , col ):
144144 self ._screen .cursor_goto (row , col )
145145
146- def _nvim_cursor_on (self ):
147- self ._cursor_enabled = True
146+ def _nvim_busy_start (self ):
147+ self ._busy = True
148148
149- def _nvim_cursor_off (self ):
150- self ._cursor_enabled = False
149+ def _nvim_busy_stop (self ):
150+ self ._busy = False
151151
152152 def _nvim_mouse_on (self ):
153153 self ._mouse_enabled = True
@@ -268,7 +268,7 @@ def _gtk_draw(self, wid, cr):
268268 cr .set_source_surface (self ._cairo_surface , 0 , 0 )
269269 cr .paint ()
270270 cr .restore ()
271- if self ._cursor_enabled and self ._blink :
271+ if not self ._busy and self ._blink :
272272 # Cursor is drawn separately in the window. This approach is
273273 # simpler because it doesn't taint the internal cairo surface,
274274 # which is used for scrolling
0 commit comments