aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@osandov.com>2015-05-17 01:39:22 -0700
committerJustin M. Keyes <justinkz@gmail.com>2015-07-26 23:45:41 -0400
commitf79025b9dea8e46afa0f10884a1759744ada5940 (patch)
treea24026900b0cc1b5cef58892a89532816f97e002 /test/functional/ui/screen.lua
parentfa48fc667a1d27db6826075e23caff4f396f191a (diff)
downloadrneovim-f79025b9dea8e46afa0f10884a1759744ada5940.tar.gz
rneovim-f79025b9dea8e46afa0f10884a1759744ada5940.tar.bz2
rneovim-f79025b9dea8e46afa0f10884a1759744ada5940.zip
tui: Use underline cursor in Replace mode
This is a port of my original contribution to Vim, added in 7.4.687 (https://github.com/vim/vim/commit/v7-4-687). The TUI code has been heavily refactored (see esp. 25ceadab37edba13f5afa78d8b4723da03ef35f0), so this required some translation, but the logic is the same.
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 4b39a74957..1d616ed853 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -341,7 +341,7 @@ function Screen:_handle_mouse_off()
end
function Screen:_handle_mode_change(mode)
- assert(mode == 'insert' or mode == 'normal')
+ assert(mode == 'insert' or mode == 'replace' or mode == 'normal')
self._mode = mode
end