mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 03:53: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)
|
let dict.job = jobstart(a:argv, a:jopts)
|
||||||
if !empty(a:stdin)
|
if !empty(a:stdin)
|
||||||
call chansend(dict.job, a:stdin)
|
call chansend(dict.job, a:stdin)
|
||||||
call chanclose(dict.job, 'stdin')
|
|
||||||
endif
|
endif
|
||||||
|
call chanclose(dict.job, 'stdin')
|
||||||
catch /^Vim\%((\a\+)\)\=:E475:/
|
catch /^Vim\%((\a\+)\)\=:E475:/
|
||||||
let [dict.exit_status, dict.stdout, dict.stderr] = [122, [''], ['']]
|
let [dict.exit_status, dict.stdout, dict.stderr] = [122, [''], ['']]
|
||||||
endtry
|
endtry
|
||||||
|
|||||||
Reference in New Issue
Block a user