aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-02-07 10:23:19 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2018-02-10 22:28:12 +0100
commit60ce7d9e0a0606e20a17f90d78e9d8319114273b (patch)
tree54ceededd83da28ca5fd8eccca33a368172ffbe2 /test/functional/ui
parenta6052c7307414045fbe2f55cd0c6a5017eb9f68e (diff)
downloadrneovim-60ce7d9e0a0606e20a17f90d78e9d8319114273b.tar.gz
rneovim-60ce7d9e0a0606e20a17f90d78e9d8319114273b.tar.bz2
rneovim-60ce7d9e0a0606e20a17f90d78e9d8319114273b.zip
shell: support bell
Diffstat (limited to 'test/functional/ui')
-rw-r--r--test/functional/ui/output_spec.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua
index c42c0b26c6..de0b8ba69b 100644
--- a/test/functional/ui/output_spec.lua
+++ b/test/functional/ui/output_spec.lua
@@ -104,13 +104,16 @@ describe("shell command :!", function()
]])
feed([[<CR>]])
-- Print BELL control code. #4338
+ screen.bell = false
feed([[:!printf '\x07\x07\x07\x07text'<CR>]])
screen:expect([[
~ |
:!printf '\x07\x07\x07\x07text' |
- ^G^G^G^Gtext |
+ text |
Press ENTER or type command to continue^ |
- ]])
+ ]], nil, nil, function()
+ eq(true, screen.bell)
+ end)
feed([[<CR>]])
-- Print BS control code.
feed([[:echo system('printf ''\x08\n''')<CR>]])