From 5f64bb35c931065f9d33f788249d92d1f4eca336 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 8 Mar 2010 22:57:18 -0500 Subject: [PATCH] Leave pager enabled on win32 git invocation --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 2b38fa1..367d0ed 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -300,7 +300,7 @@ call s:add_methods('repo',['dirglob','superglob']) function! s:repo_keywordprg() dict abort 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 else return g:fugitive_git_executable . args @@ -463,7 +463,7 @@ endfunction function! s:Git(bang,cmd) abort let git = s:repo().git_command() - if has('gui_running') + if has('gui_running') && !has('win32') let git .= ' --no-pager' endif call s:ExecuteInTree('!'.git.' '.a:cmd)