mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 20:43:46 -05:00
Disable PTY when using win32 Git in WSL
References: https://github.com/tpope/vim-fugitive/issues/1751
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user