mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Limit scope of ctrlp.vim :Gstatus hack
This commit is contained in:
@@ -763,7 +763,7 @@ function! s:StageNext(count) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:StagePrevious(count) abort
|
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())
|
return 'CtrlP '.fnameescape(s:repo().tree())
|
||||||
else
|
else
|
||||||
for i in range(a:count)
|
for i in range(a:count)
|
||||||
|
|||||||
Reference in New Issue
Block a user