commit 4f80883e05238c72e3746e616618e55ca1852f77 (tree)
parent bf14c9c8a3425b3dcedffbc82aad7fc2e5db779e
Author: Tim Pope <code@tpope.net>
Date: Thu, 10 Apr 2014 14:53:49 -0400
Limit scope of ctrlp.vim :Gstatus hack
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -763,7 +763,7 @@ function! s:StageNext(count) abort
endfunction
function! s:StagePrevious(count) abort
- if line('.') == 1 && exists(':CtrlP')
+ if line('.') == 1 && exists(':CtrlP') && get(g:, 'ctrl_p_map') =~? '^<c-p>$'
return 'CtrlP '.fnameescape(s:repo().tree())
else
for i in range(a:count)