Fix path expansion issue on Windows

References https://github.com/tpope/vim-pathogen/issues/83
This commit is contained in:
Tim Pope
2016-01-26 14:10:25 -05:00
parent b4f20ff0ac
commit 8c91196cfd
+1 -1
View File
@@ -111,7 +111,7 @@ endfunction
function! pathogen#surround(path) abort
let sep = pathogen#slash()
let rtp = pathogen#split(&rtp)
let path = fnamemodify(a:path, ':p:s?[\\/]\=$??')
let path = fnamemodify(a:path, ':s?[\\/]\=$??')
let before = filter(pathogen#expand(path), '!pathogen#is_disabled(v:val)')
let after = filter(reverse(pathogen#expand(path, sep.'after')), '!pathogen#is_disabled(v:val[0:-7])')
call filter(rtp, 'index(before + after, v:val) == -1')