mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Close stdin for nvim jobs, to match vim
This commit is contained in:
@@ -400,8 +400,8 @@ function! s:JobExecute(argv, jopts, stdin, callback, ...) abort
|
||||
let dict.job = jobstart(a:argv, a:jopts)
|
||||
if !empty(a:stdin)
|
||||
call chansend(dict.job, a:stdin)
|
||||
call chanclose(dict.job, 'stdin')
|
||||
endif
|
||||
call chanclose(dict.job, 'stdin')
|
||||
catch /^Vim\%((\a\+)\)\=:E475:/
|
||||
let [dict.exit_status, dict.stdout, dict.stderr] = [122, [''], ['']]
|
||||
endtry
|
||||
|
||||
Reference in New Issue
Block a user