messages: support shortmess-=S in ext_messages

This commit is contained in:
Björn Linse
2019-06-08 13:42:21 +02:00
parent 5a96161e86
commit 41f31ca90d
4 changed files with 38 additions and 2 deletions

View File

@@ -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')