diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-18 13:08:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 13:08:07 +0200 |
commit | d7dd6007167eac919205404bc4e556237118a7a7 (patch) | |
tree | d8b12409da742da89a2b7bf4847e5084956b0618 /test/functional/api/vim_spec.lua | |
parent | 2d277320295d1380ac093d547206b295bbdcf414 (diff) | |
parent | e1bdb2a258cbe6c5cb981acc6bac82cd9e7706fb (diff) | |
download | rneovim-d7dd6007167eac919205404bc4e556237118a7a7.tar.gz rneovim-d7dd6007167eac919205404bc4e556237118a7a7.tar.bz2 rneovim-d7dd6007167eac919205404bc4e556237118a7a7.zip |
Merge pull request #18562 from famiu/feat/ui/winbar
feat(ui): add `'winbar'`
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index ba170ba8c5..c4748cc00d 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -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() |