aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/messages_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-05-27 00:01:41 +0200
committerGitHub <noreply@github.com>2019-05-27 00:01:41 +0200
commitfb4d5a184678ab231da20ef559c8e423dfa54d6e (patch)
tree16026d36f0ed2edb689f1fb7c8017739f57227ae /test/functional/ui/messages_spec.lua
parent1ca84897a0d65b0afbb2141f12a2061dabeb6b09 (diff)
downloadrneovim-fb4d5a184678ab231da20ef559c8e423dfa54d6e.tar.gz
rneovim-fb4d5a184678ab231da20ef559c8e423dfa54d6e.tar.bz2
rneovim-fb4d5a184678ab231da20ef559c8e423dfa54d6e.zip
UI/ext_messages: restore kind=quickfix #10067
Accidentally removed in 34f9e72af9c9. ref #6201
Diffstat (limited to 'test/functional/ui/messages_spec.lua')
-rw-r--r--test/functional/ui/messages_spec.lua17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index 976dbe5893..50e354a7ee 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -27,7 +27,7 @@ describe('ui/ext_messages', function()
os.remove('Xtest')
end)
- it('msg_show kind=confirm,confirm_sub,emsg,wmsg', function()
+ it('msg_show kind=confirm,confirm_sub,emsg,wmsg,quickfix', function()
feed('iline 1\nline 2<esc>')
-- kind=confirm
@@ -143,6 +143,21 @@ describe('ui/ext_messages', function()
kind = "return_prompt"
} }
}
+
+ -- kind=quickfix after :cnext
+ feed('<c-c>')
+ command("caddexpr [expand('%').':1:line1',expand('%').':2:line2']")
+ feed(':cnext<cr>')
+ screen:expect{grid=[[
+ line 1 |
+ ^line 2 |
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ ]], messages={ {
+ content = { { "(2 of 2): line2" } },
+ kind = "quickfix"
+ } }}
end)
it(':echoerr', function()