From b4bb0c27f11bbe42f6fe11febc24183b844355d8 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 17 Sep 2023 19:01:32 -0400 Subject: [PATCH] Close stdin for nvim jobs, to match vim --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index de785ce..1ab52f3 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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