mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
fix(extui): error on :call input('') (#35515)
Problem: Error on empty string prompt.
Solution: (prompt .. '\n'):gmatch('(.-)\n').
This commit is contained in:
@@ -88,4 +88,13 @@ describe('cmdline2', function()
|
||||
|
|
||||
]])
|
||||
end)
|
||||
|
||||
it('handles empty prompt', function()
|
||||
feed(":call input('')<CR>")
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*12
|
||||
^ |
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user