From e6e6affc0ee675861f3b1f093ae3e6572cd3b4a0 Mon Sep 17 00:00:00 2001 From: erw7 Date: Mon, 25 May 2020 14:57:44 +0900 Subject: nvim_input: add test --- test/functional/api/vim_spec.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 2e9d0f57ac..bd39413e60 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -482,6 +482,11 @@ describe('API', function() eq(true, status) -- nvim_input() did not fail. eq("E117:", v_errnum) -- v:errmsg was updated. end) + + it('does not crash even if trans_special result is largest #11788, #12287', function() + command("call nvim_input('')") + eq(1, eval('1')) + end) end) describe('nvim_paste', function() -- cgit