Merge pull request #18562 from famiu/feat/ui/winbar

feat(ui): add `'winbar'`
This commit is contained in:
bfredl
2022-05-18 13:08:07 +02:00
committed by GitHub
26 changed files with 538 additions and 169 deletions

View File

@@ -3102,6 +3102,19 @@ describe('API', function()
'TextWithNoHighlight%#WarningMsg#TextWithWarningHighlight',
{ use_tabline = true, highlights = true }))
end)
it('works with winbar', function()
eq({
str = 'TextWithNoHighlightTextWithWarningHighlight',
width = 43,
highlights = {
{ start = 0, group = 'WinBar' },
{ start = 19, group = 'WarningMsg' }
}
},
meths.eval_statusline(
'TextWithNoHighlight%#WarningMsg#TextWithWarningHighlight',
{ use_winbar = true, highlights = true }))
end)
end)
end)
describe('nvim_parse_cmd', function()