mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
vim-patch:9.0.0670: no space for command line when there is a tabline
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)c9f5f73206
(cherry picked from commit31996f7748
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
947ec159ae
commit
9857cc1dbf
@@ -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()
|
||||
@@ -290,6 +291,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()
|
||||
|
Reference in New Issue
Block a user