diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-13 01:50:58 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-26 02:34:13 -0500 |
commit | 44bb7147e40743d9a70ee3a2663a7a7dacec7b13 (patch) | |
tree | 5f8913cf05a046d2ec23840915d8bb1884db768f /test/functional/ui/searchhl_spec.lua | |
parent | 4afddb8f571d9e61eab60596c59a27452e9bc839 (diff) | |
download | rneovim-44bb7147e40743d9a70ee3a2663a7a7dacec7b13.tar.gz rneovim-44bb7147e40743d9a70ee3a2663a7a7dacec7b13.tar.bz2 rneovim-44bb7147e40743d9a70ee3a2663a7a7dacec7b13.zip |
vim-patch:8.1.1192: mode is not cleared when leaving Insert mode with mapped Esc
Problem: Mode is not cleared when leaving Insert mode with mapped Esc.
Solution: Clear the mode when redraw_cmdline is set. (closes vim/vim#4269)
https://github.com/vim/vim/commit/4c25bd785aa8b565bf973cbba12ed36b76daaa4f
Diffstat (limited to 'test/functional/ui/searchhl_spec.lua')
-rw-r--r-- | test/functional/ui/searchhl_spec.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua index 222275eb4d..885fe7d4c9 100644 --- a/test/functional/ui/searchhl_spec.lua +++ b/test/functional/ui/searchhl_spec.lua @@ -20,6 +20,7 @@ describe('search highlighting', function() [2] = {background = colors.Yellow}, -- Search [3] = {reverse = true}, [4] = {foreground = colors.Red}, -- Message + [5] = {bold = true, reverse = true}, }) end) @@ -159,7 +160,15 @@ describe('search highlighting', function() ]]) feed('/foo') helpers.poke_eventloop() - screen:expect_unchanged() + screen:expect{grid=[[ + {3:foo} bar baz {3:│} | + bar baz {2:foo} {3:│} | + bar {2:foo} baz {3:│} | + {3:│} | + {1:~ }{3:│} | + {5:[No Name] [+] }{3:term }| + /foo^ | + ]]} end) it('works with incsearch', function() |