aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-09-04 15:31:56 +0200
committerGitHub <noreply@github.com>2019-09-04 15:31:56 +0200
commite7e2c8d7ffbfdb372eb974d8c14c49d9ce83ed77 (patch)
treedd078cb281b2617636cccfd52c6ecd6d0b699be1 /test
parent38806f23edfcba8cb7f7b80039d268ae3ffb0557 (diff)
parentac6fd11fa128b2a28611f54c478e84f43f728aea (diff)
downloadrneovim-e7e2c8d7ffbfdb372eb974d8c14c49d9ce83ed77.tar.gz
rneovim-e7e2c8d7ffbfdb372eb974d8c14c49d9ce83ed77.tar.bz2
rneovim-e7e2c8d7ffbfdb372eb974d8c14c49d9ce83ed77.zip
Merge pull request #10926 from blueyed/fix-echon-q
Check got_int in msg_multiline_attr with ex_echo
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/messages_spec.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua
index ed65c4526f..a6b9ef9387 100644
--- a/test/functional/ui/messages_spec.lua
+++ b/test/functional/ui/messages_spec.lua
@@ -1052,3 +1052,37 @@ describe('ui/msg_puts_printf', function()
os.execute('cmake -E remove_directory '..test_build_dir..'/share')
end)
end)
+
+describe('pager', function()
+ local screen
+
+ before_each(function()
+ clear()
+ screen = Screen.new(25, 5)
+ screen:attach()
+ screen:set_default_attr_ids({
+ [1] = {bold = true, foreground = Screen.colors.Blue1},
+ [4] = {bold = true, foreground = Screen.colors.SeaGreen4},
+ })
+ end)
+
+ it('can be quit', function()
+ command("set more")
+ feed(':echon join(map(range(0, &lines*2), "v:val"), "\\n")<cr>')
+ screen:expect{grid=[[
+ 0 |
+ 1 |
+ 2 |
+ 3 |
+ {4:-- More --}^ |
+ ]]}
+ feed('q')
+ screen:expect{grid=[[
+ ^ |
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ |
+ ]]}
+ end)
+end)