From b129752c07eea803356e77d263aedbd17cd19acd Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 31 May 2018 13:49:25 -0400 Subject: [PATCH] Fix maps that rely on s:Edit --- plugin/fugitive.vim | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 6fb2385..c1b21b1 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2883,15 +2883,15 @@ function! s:JumpInit(...) abort nnoremap o :exe GF("split") nnoremap S :exe GF("vsplit") nnoremap O :exe GF("tabedit") - nnoremap - :exe Edit('edit',0,buffer().up(v:count1)) if fugitive#buffer().type('tree')call search('^'.escape(expand('#:t'),'.*[]~\').'/\=$','wc')endif - nnoremap P :exe Edit('edit',0,buffer().commit().'^'.v:count1.buffer().path(':')) - nnoremap ~ :exe Edit('edit',0,buffer().commit().'~'.v:count1.buffer().path(':')) - nnoremap C :exe Edit('edit',0,buffer().containing_commit()) - nnoremap cc :exe Edit('edit',0,buffer().containing_commit()) - nnoremap co :exe Edit('split',0,buffer().containing_commit()) - nnoremap cS :exe Edit('vsplit',0,buffer().containing_commit()) - nnoremap cO :exe Edit('tabedit',0,buffer().containing_commit()) - nnoremap cP :exe Edit('pedit',0,buffer().containing_commit()) + nnoremap - :exe Edit('edit',0,'',buffer().up(v:count1)) if fugitive#buffer().type('tree')call search('^'.escape(expand('#:t'),'.*[]~\').'/\=$','wc')endif + nnoremap P :exe Edit('edit',0,'',buffer().commit().'^'.v:count1.buffer().path(':')) + nnoremap ~ :exe Edit('edit',0,'',buffer().commit().'~'.v:count1.buffer().path(':')) + nnoremap C :exe Edit('edit',0,'',buffer().containing_commit()) + nnoremap cc :exe Edit('edit',0,'',buffer().containing_commit()) + nnoremap co :exe Edit('split',0,'',buffer().containing_commit()) + nnoremap cS :exe Edit('vsplit',0,'',buffer().containing_commit()) + nnoremap cO :exe Edit('tabedit',0,'',buffer().containing_commit()) + nnoremap cP :exe Edit('pedit',0,'',buffer().containing_commit()) nnoremap . : =fnameescape(recall()) endif endfunction