mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Allow <C-p> pass through to ctrlp.vim in :Gstatus
This only works on the first line. Any more than that, and we'll have to give up on the whole <C-p> map entirely (which is not off the table).
This commit is contained in:
@@ -706,10 +706,14 @@ function! s:StageNext(count)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:StagePrevious(count)
|
function! s:StagePrevious(count)
|
||||||
|
if line('.') == 1 && exists(':CtrlP')
|
||||||
|
return 'CtrlP '.fnameescape(s:repo().tree())
|
||||||
|
else
|
||||||
for i in range(a:count)
|
for i in range(a:count)
|
||||||
call search('^#\t.*','Wbe')
|
call search('^#\t.*','Wbe')
|
||||||
endfor
|
endfor
|
||||||
return '.'
|
return '.'
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:StageReloadSeek(target,lnum1,lnum2)
|
function! s:StageReloadSeek(target,lnum1,lnum2)
|
||||||
|
|||||||
Reference in New Issue
Block a user