diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-06 20:03:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 20:03:59 +0800 |
commit | 25dea99ce54de6a8c4369e28e0db82e1af669f24 (patch) | |
tree | 0b459d5b835bafb8f8d615deca779734eaa028d0 /test/functional/legacy | |
parent | 2c08ab5369c79afd9138c38164e2d2c157ce8435 (diff) | |
download | rneovim-25dea99ce54de6a8c4369e28e0db82e1af669f24.tar.gz rneovim-25dea99ce54de6a8c4369e28e0db82e1af669f24.tar.bz2 rneovim-25dea99ce54de6a8c4369e28e0db82e1af669f24.zip |
vim-patch:9.0.0670: no space for command line when there is a tabline (#20512)
Problem: No space for command line when there is a tabline.
Solution: Correct computation of where the command line should be.
(closes vim/vim#11295)
https://github.com/vim/vim/commit/c9f5f73206272ccad0aa536854debc5f9781978a
Diffstat (limited to 'test/functional/legacy')
-rw-r--r-- | test/functional/legacy/cmdline_spec.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/functional/legacy/cmdline_spec.lua b/test/functional/legacy/cmdline_spec.lua index e7f5c780dc..2fceb6a132 100644 --- a/test/functional/legacy/cmdline_spec.lua +++ b/test/functional/legacy/cmdline_spec.lua @@ -5,6 +5,7 @@ local command = helpers.command local feed = helpers.feed local feed_command = helpers.feed_command local exec = helpers.exec +local meths = helpers.meths local pesc = helpers.pesc describe('cmdline', function() @@ -213,6 +214,31 @@ describe('cmdline', function() | ]]) end) + + -- oldtest: Test_cmdheight_tabline() + it("changing 'cmdheight' when there is a tabline", function() + local screen = Screen.new(60, 8) + screen:set_default_attr_ids({ + [0] = {bold = true, foreground = Screen.colors.Blue}, -- NonText + [1] = {bold = true, reverse = true}, -- StatusLine + [2] = {bold = true}, -- TabLineSel + [3] = {reverse = true}, -- TabLineFill + }) + screen:attach() + meths.set_option('laststatus', 2) + meths.set_option('showtabline', 2) + meths.set_option('cmdheight', 1) + screen:expect([[ + {2: [No Name] }{3: }| + ^ | + {0:~ }| + {0:~ }| + {0:~ }| + {0:~ }| + {1:[No Name] }| + | + ]]) + end) end) describe('cmdwin', function() |