Fix usage of index()

This commit is contained in:
Tim Pope
2021-08-07 16:18:26 -04:00
parent 2ee6a48d0b
commit 55382eb722

View File

@@ -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