Merge pull request #12376 from erw7/fix-stack-overflow-on-input-enqueue

input: fix stack overflow
This commit is contained in:
Matthieu Coudron
2020-06-08 16:52:56 +02:00
committed by GitHub
3 changed files with 14 additions and 4 deletions

View File

@@ -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('<M-'.nr2char(0x40000000).'>')")
eq(1, eval('1'))
end)
end)
describe('nvim_paste', function()