From 7171dcdb7ca23f845947cb9a89eb494d56236953 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Tue, 1 Dec 2015 20:40:17 -0800 Subject: [PATCH] update pathogen --- vim/autoload/pathogen.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/autoload/pathogen.vim b/vim/autoload/pathogen.vim index a13ae08..9bfd987 100644 --- a/vim/autoload/pathogen.vim +++ b/vim/autoload/pathogen.vim @@ -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')