Merge pull request #20775 from shadmansaleh/fix/opt_tal_not_redrawing_tabline

fix: setting tabline option not redrawing tabline
This commit is contained in:
bfredl
2022-10-24 20:05:02 +02:00
committed by GitHub
5 changed files with 44 additions and 2 deletions

View File

@@ -84,3 +84,39 @@ describe('ui/ext_tabline', function()
end}
end)
end)
describe("tabline", function()
local screen
before_each(function()
clear()
screen = Screen.new(42, 5)
screen:attach()
end)
it('redraws when tabline option is set', function()
command('set tabline=asdf')
command('set showtabline=2')
screen:expect{grid=[[
{1:asdf }|
^ |
{2:~ }|
{2:~ }|
|
]], attr_ids={
[1] = {reverse = true};
[2] = {bold = true, foreground = Screen.colors.Blue1};
}}
command('set tabline=jkl')
screen:expect{grid=[[
{1:jkl }|
^ |
{2:~ }|
{2:~ }|
|
]], attr_ids={
[1] = {reverse = true};
[2] = {bold = true, foreground = Screen.colors.Blue};
}}
end)
end)