diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-11-25 17:39:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-25 17:39:46 +0100 |
commit | ecd7beb6e4876961075cc211d2b92f987d670dfa (patch) | |
tree | 0f7f02536da708f1282c28176c27b43e937a717e /test/functional/ui/screen.lua | |
parent | 0de6f450e47d09b0432e41f2ab61a0981f056767 (diff) | |
parent | 4b95bb582d9ea95455c5fab93ef31ea497957fb3 (diff) | |
download | rneovim-ecd7beb6e4876961075cc211d2b92f987d670dfa.tar.gz rneovim-ecd7beb6e4876961075cc211d2b92f987d670dfa.tar.bz2 rneovim-ecd7beb6e4876961075cc211d2b92f987d670dfa.zip |
Merge pull request #5666 from bfredl/modechangetest
ui: add tests for ui_mode_change
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 96324bfac5..6c1a1788ce 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -170,9 +170,9 @@ function Screen.new(width, height) update_menu = false, visual_bell = false, suspended = false, + mode = 'normal', _default_attr_ids = nil, _default_attr_ignore = nil, - _mode = 'normal', _mouse_enabled = true, _attrs = {}, _cursor = { @@ -375,7 +375,7 @@ end function Screen:_handle_mode_change(mode) assert(mode == 'insert' or mode == 'replace' or mode == 'normal') - self._mode = mode + self.mode = mode end function Screen:_handle_set_scroll_region(top, bot, left, right) @@ -549,7 +549,7 @@ function Screen:print_snapshot(attrs, ignore) if attrs == nil then attrs = {} if self._default_attr_ids ~= nil then - for i, a in ipairs(self._default_attr_ids) do + for i, a in pairs(self._default_attr_ids) do attrs[i] = a end end |