mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Fix misc errors on Vim 7.4
This commit is contained in:
@@ -649,7 +649,7 @@ function! fugitive#PrepareDirEnvGitFlagsArgs(...) abort
|
|||||||
else
|
else
|
||||||
let list_args = []
|
let list_args = []
|
||||||
let cmd = []
|
let cmd = []
|
||||||
for arg in a:000
|
for l:.arg in a:000
|
||||||
if type(arg) ==# type([])
|
if type(arg) ==# type([])
|
||||||
call extend(list_args, arg)
|
call extend(list_args, arg)
|
||||||
else
|
else
|
||||||
@@ -1226,7 +1226,7 @@ function! s:SshParseConfig(into, root, file, ...) abort
|
|||||||
elseif key ==# 'include'
|
elseif key ==# 'include'
|
||||||
call s:SshParseInclude(a:into, a:root, host, value)
|
call s:SshParseInclude(a:into, a:root, host, value)
|
||||||
elseif len(key) && len(host)
|
elseif len(key) && len(host)
|
||||||
call extend(a:into, {key: []}, 'keep')
|
call extend(a:into, {key : []}, 'keep')
|
||||||
call add(a:into[key], [host, value])
|
call add(a:into[key], [host, value])
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
@@ -1470,12 +1470,12 @@ function! s:RemoteUrlCallback(remote, callback) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#RemoteUrl(...) abort
|
function! fugitive#RemoteUrl(...) abort
|
||||||
let [dir_or_config, remote, flags, cb] = s:RemoteParseArgs(a:000)
|
let [dir_or_config, remote_url, flags, cb] = s:RemoteParseArgs(a:000)
|
||||||
if len(cb)
|
if len(cb)
|
||||||
let cb = [function('s:RemoteUrlCallback'), cb]
|
let cb = [function('s:RemoteUrlCallback'), cb]
|
||||||
endif
|
endif
|
||||||
let remote = s:Remote(dir_or_config, remote, flags, cb)
|
let remote = s:Remote(dir_or_config, remote_url, flags, cb)
|
||||||
return get(remote, 'url', remote)
|
return get(remote, 'url', remote_url)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Section: Quickfix
|
" Section: Quickfix
|
||||||
|
|||||||
Reference in New Issue
Block a user