diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-31 15:38:45 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-31 16:44:53 -0500 |
commit | 723e009214ab321ad75051d3c36e3379b1c5e5a8 (patch) | |
tree | 10e57056695804f3479176d28fc62f77b56bf20f /test | |
parent | 74b343a6f23de43590ab79750848f66e2fa9a7f7 (diff) | |
download | rneovim-723e009214ab321ad75051d3c36e3379b1c5e5a8.tar.gz rneovim-723e009214ab321ad75051d3c36e3379b1c5e5a8.tar.bz2 rneovim-723e009214ab321ad75051d3c36e3379b1c5e5a8.zip |
Revert "vim-patch:8.1.1192: mode is not cleared when leaving Insert mode with mapped Esc"
This reverts commit 44bb7147e40743d9a70ee3a2663a7a7dacec7b13.
Avoid regression mentioned in https://github.com/neovim/neovim/commit/c64cce906e7ed828d331e1786c985ff7aa734546#commitcomment-45554271
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/ui/float_spec.lua | 43 | ||||
-rw-r--r-- | test/functional/ui/searchhl_spec.lua | 21 |
3 files changed, 13 insertions, 53 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 8a5dd7ef18..339ba0642c 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -391,7 +391,7 @@ describe('TUI', function() {1:x} | {4:~ }| {5:[No Name] [+] 3,1 All}| - | + :set ruler | {3:-- TERMINAL --} | ]] local expected_attr = { diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index 8d654f6e5b..32f9ae030f 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -5344,45 +5344,6 @@ describe('floatwin', function() -- at least. Also check invisible EndOfBuffer region blends correctly. meths.buf_set_lines(buf, 0, -1, true, {" x x x xx", " x x x x"}) win = meths.open_win(buf, false, {relative='editor', width=12, height=3, row=0, col=11, style='minimal'}) - if multigrid then - screen:expect{grid=[[ - ## grid 1 - [2:----------------------------------------]| - [2:----------------------------------------]| - [2:----------------------------------------]| - [2:----------------------------------------]| - [2:----------------------------------------]| - [2:----------------------------------------]| - [3:----------------------------------------]| - ## grid 2 - # TODO: 测试字典信息的准确性 | - # FIXME: 测试字典信息的准确^性 | - {0:~ }| - {0:~ }| - {0:~ }| - {0:~ }| - ## grid 3 - | - ## grid 6 - {1: x x x xx}| - {1: x x x x}| - {1: }| - ]], float_pos={ - [6] = { { - id = 1003 - }, "NW", 1, 0, 11, true } - }} - else - screen:expect{grid=[[ - # TODO: 测 {1: x x x xx} 确性 | - # FIXME: 测{1: x x x x}准确^性 | - {0:~ }{1: }{0: }| - {0:~ }| - {0:~ }| - {0:~ }| - | - ]]} - end meths.win_set_option(win, 'winblend', 30) screen:set_default_attr_ids({ [1] = {foreground = tonumber('0xb282b2'), background = tonumber('0xffcfff')}, @@ -5420,7 +5381,7 @@ describe('floatwin', function() }, "NW", 1, 0, 11, true } }} else - screen:expect{grid=[[ + screen:expect([[ # TODO: 测 {2: x x x}{1:息}{2: xx} 确性 | # FIXME: 测{1:试}{2:x x x}{1:息}{2: x}准确^性 | {3:~ }{4: }{3: }| @@ -5428,7 +5389,7 @@ describe('floatwin', function() {3:~ }| {3:~ }| | - ]]} + ]]) end meths.win_set_config(win, {relative='editor', row=0, col=12}) diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua index 740126df31..656f613c6a 100644 --- a/test/functional/ui/searchhl_spec.lua +++ b/test/functional/ui/searchhl_spec.lua @@ -20,7 +20,6 @@ describe('search highlighting', function() [2] = {background = colors.Yellow}, -- Search [3] = {reverse = true}, [4] = {foreground = colors.Red}, -- Message - [5] = {bold = true, reverse = true}, [6] = {foreground = Screen.colors.Blue4, background = Screen.colors.LightGrey}, -- Folded }) end) @@ -176,15 +175,7 @@ describe('search highlighting', function() ]]) feed('/foo') helpers.poke_eventloop() - 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^ | - ]]} + screen:expect_unchanged() end) it('works with incsearch', function() @@ -483,7 +474,15 @@ describe('search highlighting', function() -- check hilights work also in folds feed("zf4j") command("%foldopen") - screen:expect_unchanged() + screen:expect([[ + very {5:spec^ial}{2: te}{6:xt} | + | + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {4:search hit BOTTOM, continuing at TOP} | + ]]) feed_command("call clearmatches()") screen:expect([[ |