commit f7f1413ed9b69eb80c8af07d38ebcc889ed64d96 (tree)
parent 10ed70a9c23cdd1748444e89e4928282e510451d
Author: Tim Pope <code@tpope.net>
Date: Wed, 2 Jun 2021 22:58:55 -0400
Disable PTY when using win32 Git in WSL
References: https://github.com/tpope/vim-fugitive/issues/1751
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -2936,7 +2936,7 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
call extend(env, {'COLUMNS': '' . &columns - 1}, 'keep')
endif
if s:RunJobs() && pager isnot# 1
- let state.pty = get(g:, 'fugitive_pty', has('unix') && !has('win32unix') && (has('patch-8.0.0744') || has('nvim')))
+ let state.pty = get(g:, 'fugitive_pty', has('unix') && !has('win32unix') && (has('patch-8.0.0744') || has('nvim')) && fugitive#GitVersion() !~# '\.windows\>')
if !state.pty
let args = s:AskPassArgs(dir) + args
endif