mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 04:53:45 -05:00
Drop support for non-PTY :!
The experience without a PTY is pretty lackluster, and if you're using a GUI or Windows, there's probably nothing stopping you from upgrading to a version of Vim with job support.
This commit is contained in:
@@ -2531,13 +2531,11 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
|
|||||||
let state.job = job
|
let state.job = job
|
||||||
call s:RunWait(state, job)
|
call s:RunWait(state, job)
|
||||||
return 'silent checktime' . after
|
return 'silent checktime' . after
|
||||||
|
elseif has('win32')
|
||||||
|
return 'echoerr ' . string('fugitive: Vim 8 with job support required to use :Git on Windows')
|
||||||
|
elseif has('gui_running')
|
||||||
|
return 'echoerr ' . string('fugitive: Vim 8 with job support required to use :Git in GVim')
|
||||||
else
|
else
|
||||||
if has('gui_running') && !has('win32')
|
|
||||||
call insert(args, '--no-pager')
|
|
||||||
endif
|
|
||||||
if has('nvim')
|
|
||||||
let env.GIT_TERMINAL_PROMPT = '0'
|
|
||||||
endif
|
|
||||||
let pre = s:BuildEnvPrefix(env)
|
let pre = s:BuildEnvPrefix(env)
|
||||||
return 'exe ' . string('noautocmd !' . escape(pre . s:UserCommand(options, args), '!#%')) .
|
return 'exe ' . string('noautocmd !' . escape(pre . s:UserCommand(options, args), '!#%')) .
|
||||||
\ '|call fugitive#ReloadStatus(' . string(dir) . ', 1)' .
|
\ '|call fugitive#ReloadStatus(' . string(dir) . ', 1)' .
|
||||||
|
|||||||
Reference in New Issue
Block a user