Skip to content

Commit cbc04ea

Browse files
diefansbfredl
authored andcommitted
fixes #131 AttributeError for _nvim_mode_change
1 parent a565d3d commit cbc04ea

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

neovim/ui/gtk_ui.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,8 @@ def _nvim_mouse_on(self):
179179
def _nvim_mouse_off(self):
180180
self._mouse_enabled = False
181181

182-
def _nvim_insert_mode(self):
183-
self._insert_cursor = True
184-
185-
def _nvim_normal_mode(self):
186-
self._insert_cursor = False
182+
def _nvim_mode_change(self, mode):
183+
self._insert_cursor = mode == 'insert'
187184

188185
def _nvim_set_scroll_region(self, top, bot, left, right):
189186
self._screen.set_scroll_region(top, bot, left, right)

0 commit comments

Comments
 (0)