aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shell/viml_system_spec.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-11-10 08:07:16 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-11-10 18:47:03 -0300
commitab826d88f69a3cc2785baa6367d3bd01dbb84627 (patch)
tree31a708e854829a239af73146ae6bf3653f8d10ad /test/functional/shell/viml_system_spec.lua
parent63a98fca552b1f7197dd2a37764a57604e3746e8 (diff)
downloadrneovim-ab826d88f69a3cc2785baa6367d3bd01dbb84627.tar.gz
rneovim-ab826d88f69a3cc2785baa6367d3bd01dbb84627.tar.bz2
rneovim-ab826d88f69a3cc2785baa6367d3bd01dbb84627.zip
eval: Return an empty list from systemlist() when there's no output
This is the behavior on vim's `systemlist()`.
Diffstat (limited to 'test/functional/shell/viml_system_spec.lua')
-rw-r--r--test/functional/shell/viml_system_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/shell/viml_system_spec.lua b/test/functional/shell/viml_system_spec.lua
index a8bab8e26e..b36b4691b9 100644
--- a/test/functional/shell/viml_system_spec.lua
+++ b/test/functional/shell/viml_system_spec.lua
@@ -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')"))