From cdb7bd984113610a670903929ff25dc7126f1826 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 9 Oct 2012 18:35:44 -0400 Subject: [PATCH] Don't show diff in keywordprg output in GUI It's not very readable without syntax highlighting or pagination, so leave it off. --- plugin/fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 8da806c..2dea6ed 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -405,11 +405,11 @@ endfunction call s:add_methods('repo',['config', 'user', 'aliases']) function! s:repo_keywordprg() dict abort - let args = ' --git-dir='.escape(self.dir(),"\\\"' ").' show' + let args = ' --git-dir='.escape(self.dir(),"\\\"' ") if has('gui_running') && !has('win32') - return g:fugitive_git_executable . ' --no-pager' . args + return g:fugitive_git_executable . ' --no-pager' . args . ' log -1' else - return g:fugitive_git_executable . args + return g:fugitive_git_executable . args . ' show' endif endfunction