mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 07:11:20 +00:00
eval: Return an empty list from systemlist() when there's no output
This is the behavior on vim's `systemlist()`.
This commit is contained in:
@@ -166,7 +166,7 @@ describe('systemlist()', function()
|
||||
if xclip then
|
||||
describe("with a program that doesn't close stdout", function()
|
||||
it('will exit properly after passing input', function()
|
||||
eq(nil, eval(
|
||||
eq({}, eval(
|
||||
"systemlist('xclip -i -selection clipboard', ['clip', 'data'])"))
|
||||
eq({'clip', 'data'}, eval(
|
||||
"systemlist('xclip -o -selection clipboard')"))
|
||||
|
||||
Reference in New Issue
Block a user