diff options
Diffstat (limited to 'test/functional/legacy/cmdline_spec.lua')
-rw-r--r-- | test/functional/legacy/cmdline_spec.lua | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/functional/legacy/cmdline_spec.lua b/test/functional/legacy/cmdline_spec.lua index 22700990c1..819b40323a 100644 --- a/test/functional/legacy/cmdline_spec.lua +++ b/test/functional/legacy/cmdline_spec.lua @@ -175,19 +175,17 @@ describe('cmdline', function() {3:[No Name] }| |*5 ]]) - feed(':set cmdheight-=1<CR>') -- using more space moves the status line up feed(':set cmdheight+=1<CR>') screen:expect([[ ^ | - {1:~ }| {3:[No Name] }| - |*5 + |*6 ]]) -- reducing cmdheight moves status line down - feed(':set cmdheight-=2<CR>') + feed(':set cmdheight-=3<CR>') screen:expect([[ ^ | {1:~ }|*3 @@ -231,6 +229,16 @@ describe('cmdline', function() bar | {6:Press ENTER or type command to continue}^ | ]]) + + -- window commands do not reduce 'cmdheight' to value lower than :set by user + feed('<CR>:wincmd _<CR>') + screen:expect([[ + ^ | + {1:~ }|*4 + {3:[No Name] }| + :wincmd _ | + | + ]]) end) -- oldtest: Test_cmdheight_tabline() |