mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Don't use pty on win32unix
This appears to work fine in some setups, but has the same problems as regular win32 in others. Most notably, for it to work properly with the Vim included with Git for Windows, the experimental pseudo console support must not be enabled. Lacking a method to distinguish between the two cases, I see no better option than disabling it on all win32unix installations. Closes https://github.com/tpope/vim-fugitive/issues/1726
This commit is contained in:
@@ -2883,7 +2883,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('patch-8.0.0744') || has('nvim')))
|
||||
let state.pty = get(g:, 'fugitive_pty', has('unix') && !has('win32unix') && (has('patch-8.0.0744') || has('nvim')))
|
||||
if !state.pty
|
||||
let args = s:AskPassArgs(dir) + args
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user