Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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).
  • Loading branch information...
commit 615f6608f16fc806d1f31b2f5ced136f2277127e 1 parent 8d019de
@tpope authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 plugin/fugitive.vim
View
12 plugin/fugitive.vim
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.