diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2021-04-26 14:13:30 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2021-04-26 14:13:30 +0200 |
commit | 435cdf687968ae25dc2dac42ccc5b4b87a8c03dd (patch) | |
tree | 23672249ffba8b155efe18fb01e47792c2d93ec4 | |
parent | 091775154b66f0ba4558800a0357cfbf2e5db590 (diff) |
.vim/autoload: update pathogen.vim
-rw-r--r-- | .vim/autoload/pathogen.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.vim/autoload/pathogen.vim b/.vim/autoload/pathogen.vim index 3582fbf..b2891cd 100644 --- a/.vim/autoload/pathogen.vim +++ b/.vim/autoload/pathogen.vim @@ -118,7 +118,7 @@ function! pathogen#surround(path) abort let rtp = pathogen#split(&rtp) 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])') + 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') let &rtp = pathogen#join(before, rtp, after) return &rtp @@ -136,7 +136,7 @@ function! pathogen#interpose(name) abort let list = [] for dir in pathogen#split(&rtp) if dir =~# '\<after$' - let list += reverse(filter(pathogen#expand(dir[0:-6].name, sep.'after'), '!pathogen#is_disabled(v:val[0:-7])')) + [dir] + let list += reverse(filter(pathogen#expand(dir[0 : -6].name, sep.'after'), '!pathogen#is_disabled(v:val[0 : -7])')) + [dir] else let list += [dir] + filter(pathogen#expand(dir.sep.name), '!pathogen#is_disabled(v:val)') endif |