1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-04 22:39:02 -08:00

update pathogen

This commit is contained in:
Connor Olding 2015-12-01 20:40:17 -08:00
parent 8554a0bd28
commit 7171dcdb7c

View file

@ -108,7 +108,7 @@ endfunction "}}}1
function! pathogen#surround(path) abort
let sep = pathogen#slash()
let rtp = pathogen#split(&rtp)
let path = fnamemodify(a:path, ':p:?[\\/]\=$??')
let path = fnamemodify(a:path, ':p: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')