mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
fix: handle argv not present in nvim_get_chan_info
This commit is contained in:
parent
673ee213e9
commit
6e703f778f
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user