From 41f31ca90da4edd3c2fe518b87d4134552429ff8 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sat, 8 Jun 2019 13:42:21 +0200 Subject: messages: support shortmess-=S in ext_messages --- test/functional/ui/messages_spec.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'test') 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') + + feed('/line') + 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 echomsg "stuff"') feed('i') -- cgit