diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-09-13 12:56:30 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-09-15 12:13:43 +0200 |
commit | 708bd686516b420c2b65f4bc4d2c58fe43fb945e (patch) | |
tree | dceae7b5fc616d7cfec138e5291d664ec7ba451e /test/functional/ui/cmdline_spec.lua | |
parent | bf6de51f55c1b812342c7d4e88c65a7cae7fe97f (diff) | |
download | rneovim-708bd686516b420c2b65f4bc4d2c58fe43fb945e.tar.gz rneovim-708bd686516b420c2b65f4bc4d2c58fe43fb945e.tar.bz2 rneovim-708bd686516b420c2b65f4bc4d2c58fe43fb945e.zip |
feat(ui): use msg_grid based implementation for cmdheight=0
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r-- | test/functional/ui/cmdline_spec.lua | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua index db13647cc6..40dee4186b 100644 --- a/test/functional/ui/cmdline_spec.lua +++ b/test/functional/ui/cmdline_spec.lua @@ -1022,7 +1022,7 @@ describe('cmdheight=0', function() ~ | :^ | ]]} - eq(1, eval('&cmdheight')) + eq(0, eval('&cmdheight')) feed('<cr>') screen:expect{grid=[[ ^ | @@ -1040,11 +1040,11 @@ describe('cmdheight=0', function() screen:expect{grid=[[ | ~ | - ~ | - ~ | + | + :call input("foo >") | foo >^ | ]]} - eq(1, eval('&cmdheight')) + eq(0, eval('&cmdheight')) feed('<cr>') screen:expect{grid=[[ ^ | @@ -1060,8 +1060,8 @@ describe('cmdheight=0', function() command("set cmdheight=0 noruler laststatus=3 winbar=foo") feed(':split<CR>') screen:expect{grid=[[ - foo | | + :split | E36: Not enough room | Press ENTER or type comma| nd to continue^ | @@ -1079,7 +1079,7 @@ describe('cmdheight=0', function() foo | | ~ | - [No Name] | + ~ | :^ | ]]} feed('<Esc>') @@ -1103,8 +1103,8 @@ describe('cmdheight=0', function() ~ | ~ | ~ | - recording @q | - ]], showmode={}} + ~ | + ]]} feed('q') screen:expect{grid=[[ ^ | @@ -1112,7 +1112,7 @@ describe('cmdheight=0', function() ~ | ~ | ~ | - ]], showmode={}} + ]], unchanged=true} end) it("when substitute text", function() @@ -1131,7 +1131,7 @@ describe('cmdheight=0', function() foo | ~ | ~ | - [No Name] [+] | + ~ | replace wi...q/l/^E/^Y)?^ | ]]} |