aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/cmdline_spec.lua
diff options
context:
space:
mode:
authorraichoo <raichoo@googlemail.com>2018-05-10 14:55:07 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-05-10 14:55:07 +0200
commit3a6b80f2f44dcb5cd050bbbaacce4fc8a638aede (patch)
treef9f8ea4ccd4da90684d5f7e48acdd7cb7d77c6f0 /test/functional/ui/cmdline_spec.lua
parentf1a307555395d43fedc5d672d2bca8d92b00532e (diff)
downloadrneovim-3a6b80f2f44dcb5cd050bbbaacce4fc8a638aede.tar.gz
rneovim-3a6b80f2f44dcb5cd050bbbaacce4fc8a638aede.tar.bz2
rneovim-3a6b80f2f44dcb5cd050bbbaacce4fc8a638aede.zip
UI: redraw statusline when entering cmdline (#8347)
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r--test/functional/ui/cmdline_spec.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua
index f8680678ef..41c290a462 100644
--- a/test/functional/ui/cmdline_spec.lua
+++ b/test/functional/ui/cmdline_spec.lua
@@ -157,6 +157,27 @@ describe('external cmdline', function()
end)
end)
+ it("redraws statusline on entering", function()
+ command('set laststatus=2')
+ command('set statusline=%{mode()}')
+ feed(':')
+ screen:expect([[
+ |
+ {1:~ }|
+ {1:~ }|
+ {3:c^ }|
+ |
+ ]], nil, nil, function()
+ eq({{
+ content = { { {}, "" } },
+ firstc = ":",
+ indent = 0,
+ pos = 0,
+ prompt = ""
+ }}, cmdline)
+ end)
+ end)
+
it("works with input()", function()
feed(':call input("input", "default")<cr>')
screen:expect([[