aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/cmdline_highlight_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-06-28 22:09:10 +0300
committerZyX <kp-pav@yandex.ru>2017-06-28 22:09:10 +0300
commit3da49cd68e7d5c968cc99a926819038ff57f488f (patch)
tree1c41cb3f55e184278cbfc465abee90242bc7f3fc /test/functional/ui/cmdline_highlight_spec.lua
parent9ccb3abbb55ec8ed7f3b4d2d2516fd451eca9a68 (diff)
downloadrneovim-3da49cd68e7d5c968cc99a926819038ff57f488f.tar.gz
rneovim-3da49cd68e7d5c968cc99a926819038ff57f488f.tar.bz2
rneovim-3da49cd68e7d5c968cc99a926819038ff57f488f.zip
ex_getln: Fix “echoerr msg not shown” problem
This also attempted to fix problem with cancelling input() on error by avoiding standard error printing facilities (assumed thrown error message is the problem), but with no luck so far.
Diffstat (limited to 'test/functional/ui/cmdline_highlight_spec.lua')
-rw-r--r--test/functional/ui/cmdline_highlight_spec.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua
index a3dc9af360..dbabf65b68 100644
--- a/test/functional/ui/cmdline_highlight_spec.lua
+++ b/test/functional/ui/cmdline_highlight_spec.lua
@@ -289,7 +289,16 @@ describe('Command-line coloring', function()
it('does the right thing when errorring', function()
set_color_cb('Echoerring')
start_prompt('e')
- -- FIXME Does not work well with :echoerr: error message not shown.
+ screen:expect([[
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ {EOB:~ }|
+ : |
+ {ERR:E5407: Callback has thrown an exception:}|
+ {ERR: Vim(echoerr):HERE} |
+ :e^ |
+ ]])
end)
it('does the right thing when throwing', function()
set_color_cb('Throwing')