mirror of
https://github.com/notwa/rc
synced 2024-11-05 00:29:02 -08:00
update pathogen
This commit is contained in:
parent
8554a0bd28
commit
7171dcdb7c
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ endfunction "}}}1
|
||||||
function! pathogen#surround(path) abort
|
function! pathogen#surround(path) abort
|
||||||
let sep = pathogen#slash()
|
let sep = pathogen#slash()
|
||||||
let rtp = pathogen#split(&rtp)
|
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 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])')
|
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')
|
call filter(rtp, 'index(before + after, v:val) == -1')
|
||||||
|
|
Loading…
Reference in a new issue