mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
messages: support shortmess-=S in ext_messages
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user