Close stdin for nvim jobs, to match vim

This commit is contained in:
Tim Pope
2023-09-17 19:01:32 -04:00
parent 6fcb0ad039
commit b4bb0c27f1

View File

@@ -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