aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen_basic_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-05-09 18:06:29 +0200
committerGitHub <noreply@github.com>2017-05-09 18:06:29 +0200
commitd76a95824d905006c0ce8f33a703ceaf63b90f9d (patch)
treefa5a03ecf6bd803d1b7c9431b27d663b3585ce88 /test/functional/ui/screen_basic_spec.lua
parent0e873a30f3072dbacfb700f1e331a8c8396f2e1f (diff)
parent823b35e3414dca0c77697e6e59ec30244b7f4eab (diff)
downloadrneovim-d76a95824d905006c0ce8f33a703ceaf63b90f9d.tar.gz
rneovim-d76a95824d905006c0ce8f33a703ceaf63b90f9d.tar.bz2
rneovim-d76a95824d905006c0ce8f33a703ceaf63b90f9d.zip
Merge #6707 from ZyX-I/fix-strchr-invalid
Diffstat (limited to 'test/functional/ui/screen_basic_spec.lua')
-rw-r--r--test/functional/ui/screen_basic_spec.lua40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua
index 5d89416e4a..bfcdc7f652 100644
--- a/test/functional/ui/screen_basic_spec.lua
+++ b/test/functional/ui/screen_basic_spec.lua
@@ -565,6 +565,46 @@ describe('Screen', function()
]])
end)
end)
+
+ describe('press enter', function()
+ it('does not crash on <F1> at “Press ENTER”', function()
+ command('nnoremap <F1> :echo "TEST"<CR>')
+ feed(':ls<CR>')
+ screen:expect([[
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ :ls |
+ 1 %a "[No Name]" line 1 |
+ {7:Press ENTER or type command to continue}^ |
+ ]])
+ feed('<F1>')
+ screen:expect([[
+ ^ |
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ {0:~ }|
+ TEST |
+ ]])
+ end)
+ end)
end)
describe('nvim_ui_attach()', function()