motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 68f0cb87a9073959dfd1fd007942829902bfa546 (tree)
parent 9ca6e0c6337eb2b88392b7902b64eabfe1314ca8
Author: Tim Pope <code@tpope.net>
Date:   Sun, 11 Aug 2019 01:02:06 -0400

Don't require <mods> for vertical/tab blame culprit maps

Diffstat:
Mautoload/fugitive.vim | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -4643,7 +4643,7 @@ function! s:BlameCommand(line1, line2, range, count, bang, mods, reg, arg, args) call s:throw(join(readfile(error),"\n")) endif if a:count > 0 - let edit = s:Mods(a:mods) . get(['edit', 'split', 'pedit'], a:count - (a:line1 ? a:line1 : 1), 'split') + let edit = s:Mods(a:mods) . get(['edit', 'split', 'pedit', 'vsplit', 'tabedit'], a:count - (a:line1 ? a:line1 : 1), 'split') return s:BlameCommit(edit, get(readfile(temp), 0, ''), bufnr('')) else let temp = s:Resolve(temp) @@ -5165,8 +5165,8 @@ function! fugitive#MapJumps(...) abort nnoremap <buffer> <silent> <CR> :<C-U>0,1Gblame<CR> nnoremap <buffer> <silent> o :<C-U>0,2Gblame<CR> nnoremap <buffer> <silent> S :<C-U>echoerr 'Use gO'<CR> - nnoremap <buffer> <silent> gO :<C-U>vertical 0,2Gblame<CR> - nnoremap <buffer> <silent> O :<C-U>tab 0,2Gblame<CR> + nnoremap <buffer> <silent> gO :<C-U>0,4Gblame<CR> + nnoremap <buffer> <silent> O :<C-U>0,5Gblame<CR> nnoremap <buffer> <silent> p :<C-U>0,3Gblame<CR> else nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>GF("edit")<CR>