mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
Leave pager enabled on win32 git invocation
This commit is contained in:
@@ -300,7 +300,7 @@ call s:add_methods('repo',['dirglob','superglob'])
|
|||||||
|
|
||||||
function! s:repo_keywordprg() dict abort
|
function! s:repo_keywordprg() dict abort
|
||||||
let args = ' --git-dir='.escape(self.dir(),"\\\"' ").' show'
|
let args = ' --git-dir='.escape(self.dir(),"\\\"' ").' show'
|
||||||
if has("gui_running")
|
if has('gui_running') && !has('win32')
|
||||||
return g:fugitive_git_executable . ' --no-pager' . args
|
return g:fugitive_git_executable . ' --no-pager' . args
|
||||||
else
|
else
|
||||||
return g:fugitive_git_executable . args
|
return g:fugitive_git_executable . args
|
||||||
@@ -463,7 +463,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:Git(bang,cmd) abort
|
function! s:Git(bang,cmd) abort
|
||||||
let git = s:repo().git_command()
|
let git = s:repo().git_command()
|
||||||
if has('gui_running')
|
if has('gui_running') && !has('win32')
|
||||||
let git .= ' --no-pager'
|
let git .= ' --no-pager'
|
||||||
endif
|
endif
|
||||||
call s:ExecuteInTree('!'.git.' '.a:cmd)
|
call s:ExecuteInTree('!'.git.' '.a:cmd)
|
||||||
|
|||||||
Reference in New Issue
Block a user