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 55382eb722407daaebe1db1f7f7ed99d99302cf5 (tree)
parent 2ee6a48d0bb7fa10040d0165583895cf4761206e
Author: Tim Pope <code@tpope.net>
Date:   Sat,  7 Aug 2021 16:18:26 -0400

Fix usage of index()

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -921,7 +921,7 @@ function! fugitive#RemoteUrl(...) abort break endif endfor - if !index(args, 1) && !index(args, get(v:, 'true', 1)) && !index(args, 'noresolve') + if index(args, 1) < 0 && index(args, get(v:, 'true', 1)) < 0 && index(args, 'noresolve') < 0 let url = fugitive#ResolveRemote(url) endif return url