mirror of
https://github.com/neovim/neovim.git
synced 2026-10-25 15:10:20 -05:00
fix: handle argv not present in nvim_get_chan_info
This commit is contained in:
1 parent
673ee213e9
commit
6e703f778f
1 file changed
+1
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user