mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Support ~ in ssh config include
Resolves: https://github.com/tpope/vim-rhubarb/issues/79
This commit is contained in:
@@ -1255,7 +1255,7 @@ function! s:SshParseConfig(into, root, file) abort
|
|||||||
let host = s:SshParseHost(value)
|
let host = s:SshParseHost(value)
|
||||||
elseif key ==# 'include'
|
elseif key ==# 'include'
|
||||||
for glob in split(value)
|
for glob in split(value)
|
||||||
if glob !~# '^/'
|
if glob !~# '^[~/]'
|
||||||
let glob = a:root . glob
|
let glob = a:root . glob
|
||||||
endif
|
endif
|
||||||
for included in reverse(split(glob(glob), "\n"))
|
for included in reverse(split(glob(glob), "\n"))
|
||||||
|
|||||||
Reference in New Issue
Block a user