diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-04-17 13:32:22 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-04-21 12:32:38 +0200 |
commit | 2c5751b9b2b22b8519aeda82088fe4525f2bd713 (patch) | |
tree | 778b00d961d6ebb7a599bd8d1041e698aac504fb /test/functional/ui/screen.lua | |
parent | 9cdbbd49825561d642705990a2704b2241cf0584 (diff) | |
download | rneovim-2c5751b9b2b22b8519aeda82088fe4525f2bd713.tar.gz rneovim-2c5751b9b2b22b8519aeda82088fe4525f2bd713.tar.bz2 rneovim-2c5751b9b2b22b8519aeda82088fe4525f2bd713.zip |
ui: add tests for new cursor shape modes
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index afbcd222c7..ceb82db98f 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -384,9 +384,8 @@ function Screen:_handle_mouse_off() self._mouse_enabled = false end -function Screen:_handle_mode_change(mode) - assert(mode == 'insert' or mode == 'replace' - or mode == 'normal' or mode == 'cmdline') +function Screen:_handle_mode_change(mode, idx) + assert(idx == self._cursor_style[mode].mode_idx) self.mode = mode end |