commit 6e703f778fe7836663ad93761db676d5e2528d3e
parent 673ee213e9d0900b1fa2638dc5373ee8167ed4fa
Author: Gregory Anders <greg@gpanders.com>
Date: Sat, 4 Sep 2021 15:42:00 -0600
fix: handle argv not present in nvim_get_chan_info
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 <buffer> "
" if !v:event.status |"
" let info = nvim_get_chan_info(&channel) |"
- " if info.argv ==# [&shell] |"
+ " if get(info, 'argv', []) ==# [&shell] |"
" exec 'bdelete! ' .. expand('<abuf>') |"
" endif |"
" endif");