mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03: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
|
||||
|
||||
function! s:StagePrevious(count)
|
||||
for i in range(a:count)
|
||||
call search('^#\t.*','Wbe')
|
||||
endfor
|
||||
return '.'
|
||||
if line('.') == 1 && exists(':CtrlP')
|
||||
return 'CtrlP '.fnameescape(s:repo().tree())
|
||||
else
|
||||
for i in range(a:count)
|
||||
call search('^#\t.*','Wbe')
|
||||
endfor
|
||||
return '.'
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:StageReloadSeek(target,lnum1,lnum2)
|
||||
|
||||
Reference in New Issue
Block a user