mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-12 08:00:18 +08:00
Limit scope of ctrlp.vim :Gstatus hack
This commit is contained in:
1 parent
bf14c9c8a3
commit
4f80883e05
1 file changed
+1
-1
+1
-1
@@ -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