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 endfunction
function! s:StagePrevious(count) function! s:StagePrevious(count)
for i in range(a:count) if line('.') == 1 && exists(':CtrlP')
call search('^#\t.*','Wbe') return 'CtrlP '.fnameescape(s:repo().tree())
endfor else
return '.' for i in range(a:count)
call search('^#\t.*','Wbe')
endfor
return '.'
endif
endfunction endfunction
function! s:StageReloadSeek(target,lnum1,lnum2) function! s:StageReloadSeek(target,lnum1,lnum2)