Disable PTY when using win32 Git in WSL

References: https://github.com/tpope/vim-fugitive/issues/1751
This commit is contained in:
Tim Pope
2021-06-02 22:58:55 -04:00
parent 10ed70a9c2
commit f7f1413ed9

View File

@@ -2936,7 +2936,7 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
call extend(env, {'COLUMNS': '' . &columns - 1}, 'keep') call extend(env, {'COLUMNS': '' . &columns - 1}, 'keep')
endif endif
if s:RunJobs() && pager isnot# 1 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 if !state.pty
let args = s:AskPassArgs(dir) + args let args = s:AskPassArgs(dir) + args
endif endif