aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/inccommand_spec.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-10-14 04:22:40 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-10-14 09:08:56 -0400
commit9c2d5f1a33ccf3838899425ede481c6cdb00acb5 (patch)
tree07f044aad44712a058a27e66e852f97bf4e80a7e /test/functional/ui/inccommand_spec.lua
parente7ba32529861e2c843ad7d5fc2d2d505a9412108 (diff)
downloadrneovim-9c2d5f1a33ccf3838899425ede481c6cdb00acb5.tar.gz
rneovim-9c2d5f1a33ccf3838899425ede481c6cdb00acb5.tar.bz2
rneovim-9c2d5f1a33ccf3838899425ede481c6cdb00acb5.zip
functionaltest: map error does not cancel prompt
Diffstat (limited to 'test/functional/ui/inccommand_spec.lua')
-rw-r--r--test/functional/ui/inccommand_spec.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/ui/inccommand_spec.lua b/test/functional/ui/inccommand_spec.lua
index 6a17448582..49b566e5a2 100644
--- a/test/functional/ui/inccommand_spec.lua
+++ b/test/functional/ui/inccommand_spec.lua
@@ -1503,7 +1503,7 @@ describe("'inccommand' and :cnoremap", function()
end
end)
- it('does not work with a failing mapping', function()
+ it('does work with a failing mapping', function()
for _, case in pairs(cases) do
refresh(case)
feed_command("cnoremap <expr> x execute('bwipeout!')[-1].'x'")
@@ -1512,7 +1512,10 @@ describe("'inccommand' and :cnoremap", function()
-- error thrown b/c of the mapping
neq(nil, eval('v:errmsg'):find('^E523:'))
- expect(default_text)
+ expect([[
+ Inc substitution on
+ toxo lines
+ ]])
end
end)