Skip to content

Commit b4174e4

Browse files
Lifepillartpope
authored andcommitted
Fix typo in pathogen#surround()
Closes #157
1 parent b9fb0df commit b4174e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/pathogen.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ endfunction "}}}1
108108
function! pathogen#surround(path) abort
109109
let sep = pathogen#slash()
110110
let rtp = pathogen#split(&rtp)
111-
let path = fnamemodify(a:path, ':p:?[\\/]\=$??')
111+
let path = fnamemodify(a:path, ':p:s?[\\/]\=$??')
112112
let before = filter(pathogen#expand(path), '!pathogen#is_disabled(v:val)')
113113
let after = filter(reverse(pathogen#expand(path.sep.'after')), '!pathogen#is_disabled(v:val[0:-7])')
114114
call filter(rtp, 'index(before + after, v:val) == -1')

0 commit comments

Comments
 (0)