From f79025b9dea8e46afa0f10884a1759744ada5940 Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Sun, 17 May 2015 01:39:22 -0700 Subject: 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. --- test/functional/ui/screen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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 -- cgit