mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 13:04:51 +08:00
Fix usage of index()
This commit is contained in:
@@ -921,7 +921,7 @@ function! fugitive#RemoteUrl(...) abort
|
|||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
endfor
|
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)
|
let url = fugitive#ResolveRemote(url)
|
||||||
endif
|
endif
|
||||||
return url
|
return url
|
||||||
|
|||||||
Reference in New Issue
Block a user