From 6e703f778fe7836663ad93761db676d5e2528d3e Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Sat, 4 Sep 2021 15:42:00 -0600 Subject: [PATCH] fix: handle argv not present in nvim_get_chan_info --- src/nvim/eval/funcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index 70e687ce73..aebd6b25f6 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -8507,7 +8507,7 @@ static void f_termopen(typval_T *argvars, typval_T *rettv, EvalFuncData fptr) do_cmdline_cmd("autocmd! TermClose " " if !v:event.status |" " let info = nvim_get_chan_info(&channel) |" - " if info.argv ==# [&shell] |" + " if get(info, 'argv', []) ==# [&shell] |" " exec 'bdelete! ' .. expand('') |" " endif |" " endif");