mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Limit scope of ctrlp.vim :Gstatus hack
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user