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:
Tim Pope
2012-09-07 01:15:48 -04:00
parent 8d019de97c
commit 615f6608f1

View File

@@ -706,10 +706,14 @@ function! s:StageNext(count)
endfunction
function! s:StagePrevious(count)
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)