diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-14 07:00:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 07:00:04 +0800 |
commit | 0adb9f75c52424c8839708f51294ca5f58a3c18f (patch) | |
tree | 8777196e38a07d17bc978b18a404e5d88d6233ca /test/functional/ui/winbar_spec.lua | |
parent | 3a3ec37260592b6c5ab96c4e8f7f96a7b411829f (diff) | |
parent | 80f6d55521cd25e7746e34b899be5532ea88c09b (diff) | |
download | rneovim-0adb9f75c52424c8839708f51294ca5f58a3c18f.tar.gz rneovim-0adb9f75c52424c8839708f51294ca5f58a3c18f.tar.bz2 rneovim-0adb9f75c52424c8839708f51294ca5f58a3c18f.zip |
Merge pull request #23071 from luukvbaal/sloclater
fix: winbar is not redrawn on window change when 'showcmdloc' is "statusline"
Diffstat (limited to 'test/functional/ui/winbar_spec.lua')
-rw-r--r-- | test/functional/ui/winbar_spec.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/functional/ui/winbar_spec.lua b/test/functional/ui/winbar_spec.lua index ece27ec3ff..970f9c3d76 100644 --- a/test/functional/ui/winbar_spec.lua +++ b/test/functional/ui/winbar_spec.lua @@ -114,6 +114,41 @@ describe('winbar', function() {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) it('works when switching value of \'winbar\'', function() |