diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-11-10 19:01:53 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-10 19:01:53 -0500 |
commit | 3080672650b1a6583684edfdafef7e07c0c7cf56 (patch) | |
tree | 888527c926d8117c21d291311e34f271614cf66f /src/nvim/eval.c | |
parent | b0cd397a43ae18942e12b1c76f838aac135b18cf (diff) | |
parent | 3e8ef31ada1f2ae0b0cd58bb25d5516d19eee82d (diff) | |
download | rneovim-3080672650b1a6583684edfdafef7e07c0c7cf56.tar.gz rneovim-3080672650b1a6583684edfdafef7e07c0c7cf56.tar.bz2 rneovim-3080672650b1a6583684edfdafef7e07c0c7cf56.zip |
Merge pull request #1448 from tarruda/shell-systemlist-test-fixes
Fixes to shell.c, systemlist and functional tests
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 59363a3608..fc61fed529 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -14492,6 +14492,11 @@ static void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv, set_vim_var_nr(VV_SHELL_ERROR, (long) status); if (res == NULL) { + if (retlist) { + // return an empty list when there's no output + rettv->v_type = VAR_LIST; + rettv->vval.v_list = list_alloc(); + } return; } |