aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-07-26 23:50:55 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-07-26 23:50:55 -0400
commitccebc1f8d3b30536bbaab532cc5acc7ba7ec3d4b (patch)
treea24026900b0cc1b5cef58892a89532816f97e002 /test/functional
parent61e4a320658ffd64103795cf9aeb9a53c1ac2032 (diff)
parentf79025b9dea8e46afa0f10884a1759744ada5940 (diff)
downloadrneovim-ccebc1f8d3b30536bbaab532cc5acc7ba7ec3d4b.tar.gz
rneovim-ccebc1f8d3b30536bbaab532cc5acc7ba7ec3d4b.tar.bz2
rneovim-ccebc1f8d3b30536bbaab532cc5acc7ba7ec3d4b.zip
Merge #2660 'generalize mode-change API and support replace-mode cursor'
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/ui/screen.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 60198bb008..1d616ed853 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -340,12 +340,9 @@ function Screen:_handle_mouse_off()
self._mouse_enabled = false
end
-function Screen:_handle_insert_mode()
- self._mode = 'insert'
-end
-
-function Screen:_handle_normal_mode()
- self._mode = 'normal'
+function Screen:_handle_mode_change(mode)
+ assert(mode == 'insert' or mode == 'replace' or mode == 'normal')
+ self._mode = mode
end
function Screen:_handle_set_scroll_region(top, bot, left, right)