From 430253c302cfbb35b07b8819f32fab1f785076fd Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 23 Feb 2020 18:04:43 -0500 Subject: [PATCH] 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. --- autoload/fugitive.vim | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b260004..6903f46 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2531,13 +2531,11 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort let state.job = job call s:RunWait(state, job) 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 - 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) return 'exe ' . string('noautocmd !' . escape(pre . s:UserCommand(options, args), '!#%')) . \ '|call fugitive#ReloadStatus(' . string(dir) . ', 1)' .