mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
test(winbar_spec): properly update winbar when 'showcmdloc' is "statusline"
Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
This commit is contained in:
@@ -114,6 +114,41 @@ describe('winbar', function()
|
|||||||
{2:[No Name] [No Name] }|
|
{2:[No Name] [No Name] }|
|
||||||
|
|
|
|
||||||
]])
|
]])
|
||||||
|
-- 'showcmdloc' "statusline" should not interfere with winbar redrawing #23030
|
||||||
|
command('set showcmd showcmdloc=statusline')
|
||||||
|
feed('<C-W>w')
|
||||||
|
feed('<C-W>')
|
||||||
|
screen:expect([[
|
||||||
|
{6:Set Up The Bars }│{6:Set Up The Bars }|
|
||||||
|
│ |
|
||||||
|
{3:~ }│{3:~ }|
|
||||||
|
{3:~ }│{2:[No Name] }|
|
||||||
|
{3:~ }│{5:Set Up The Bars }|
|
||||||
|
{3:~ }│^ |
|
||||||
|
{3:~ }│{3:~ }|
|
||||||
|
{3:~ }│{4:[No Name] ^W }|
|
||||||
|
{3:~ }│{6:Set Up The Bars }|
|
||||||
|
{3:~ }│ |
|
||||||
|
{3:~ }│{3:~ }|
|
||||||
|
{2:[No Name] [No Name] }|
|
||||||
|
|
|
||||||
|
]])
|
||||||
|
feed('w<C-W>W')
|
||||||
|
screen:expect([[
|
||||||
|
{6:Set Up The Bars }│{6:Set Up The Bars }|
|
||||||
|
│ |
|
||||||
|
{3:~ }│{3:~ }|
|
||||||
|
{3:~ }│{2:[No Name] }|
|
||||||
|
{3:~ }│{5:Set Up The Bars }|
|
||||||
|
{3:~ }│^ |
|
||||||
|
{3:~ }│{3:~ }|
|
||||||
|
{3:~ }│{4:[No Name] }|
|
||||||
|
{3:~ }│{6:Set Up The Bars }|
|
||||||
|
{3:~ }│ |
|
||||||
|
{3:~ }│{3:~ }|
|
||||||
|
{2:[No Name] [No Name] }|
|
||||||
|
|
|
||||||
|
]])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('works when switching value of \'winbar\'', function()
|
it('works when switching value of \'winbar\'', function()
|
||||||
|
Reference in New Issue
Block a user