aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/execute_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-03-31 11:12:27 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-03-31 11:12:27 +0200
commit98e71123900fbdf26a16a43297a1f58118cde41b (patch)
tree6150b62965361020e20c6d0c0dde285a1d1f0ffb /test/functional/eval/execute_spec.lua
parent362346f56334d05d080be05ae4b8c9902dbdc3f7 (diff)
downloadrneovim-98e71123900fbdf26a16a43297a1f58118cde41b.tar.gz
rneovim-98e71123900fbdf26a16a43297a1f58118cde41b.tar.bz2
rneovim-98e71123900fbdf26a16a43297a1f58118cde41b.zip
msg: do not scroll entire screen (#8088)
Diffstat (limited to 'test/functional/eval/execute_spec.lua')
-rw-r--r--test/functional/eval/execute_spec.lua16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/functional/eval/execute_spec.lua b/test/functional/eval/execute_spec.lua
index 183884a51e..925e311c7d 100644
--- a/test/functional/eval/execute_spec.lua
+++ b/test/functional/eval/execute_spec.lua
@@ -106,16 +106,22 @@ describe('execute()', function()
end)
it('does not corrupt the command display #5422', function()
- local screen = Screen.new(70, 5)
+ local screen = Screen.new(70, 7)
screen:attach()
feed(':echo execute("hi ErrorMsg")<CR>')
screen:expect([[
- ~ |
- ~ |
+ |
+ {1:~ }|
+ {1:~ }|
+ {2: }|
:echo execute("hi ErrorMsg") |
ErrorMsg xxx ctermfg=15 ctermbg=1 guifg=White guibg=Red |
- Press ENTER or type command to continue^ |
- ]])
+ {3:Press ENTER or type command to continue}^ |
+ ]], {
+ [1] = {bold = true, foreground = Screen.colors.Blue1},
+ [2] = {bold = true, reverse = true},
+ [3] = {bold = true, foreground = Screen.colors.SeaGreen4},
+ })
feed('<CR>')
end)