aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/messages_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r--test/functional/ui/messages_spec.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index 7d21f40ce9..16e1619a3a 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -21,6 +21,8 @@ describe('ui/ext_messages', function()
[4] = {bold = true, foreground = Screen.colors.SeaGreen4},
[5] = {foreground = Screen.colors.Blue1},
[6] = {bold = true, reverse = true},
+ [7] = {background = Screen.colors.Yellow},
+ [8] = {foreground = Screen.colors.Red},
})
end)
after_each(function()
@@ -303,6 +305,33 @@ describe('ui/ext_messages', function()
}}
end)
+ it('shortmess-=S', function()
+ command('set shortmess-=S')
+ feed('iline 1\nline 2<esc>')
+
+ feed('/line<cr>')
+ screen:expect{grid=[[
+ {7:^line} 1 |
+ {7:line} 2 |
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ ]], messages={
+ {content = {{"/line [1/2] W"}}, kind = "search_count"}
+ }}
+
+ feed('n')
+ screen:expect{grid=[[
+ {7:line} 1 |
+ {7:^line} 2 |
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ ]], messages={
+ {content = {{"/line [2/2]"}}, kind = "search_count"}
+ }}
+ end)
+
it('&showmode', function()
command('imap <f2> <cmd>echomsg "stuff"<cr>')
feed('i')