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 64bc1a343156512cf5896b33ff46c99fcaa36edb (tree)
parent 4a8db6b8561ca664805cd4e61067b4d6fbd3cf46
Author: Tim Pope <code@tpope.net>
Date:   Fri, 19 Nov 2021 17:42:33 -0500

Remove dead code

The use of remove() here wouldn't actually work as it expects an index,
not a value.

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

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -6983,13 +6983,6 @@ function! s:BlameJump(suffix, ...) abort let offset = line('.') - line('w0') let state = s:TempState() let flags = get(state, 'blame_flags', []) - if a:0 && a:1 - if s:HasOpt(flags, '--reverse') - call remove(flags, '--reverse') - else - call add(flags, '--reverse') - endif - endif let blame_bufnr = s:BlameBufnr() if blame_bufnr > 0 let bufnr = bufnr('')