Skip to content

Commit 890e013

Browse files
committed
Fix handling of after directories
Closes #167
1 parent 68ead6a commit 890e013

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
@@ -181,7 +181,7 @@ function! pathogen#expand(pattern, ...) abort
181181
call extend(results, pathogen#expand(pattern))
182182
endfor
183183
elseif a:pattern =~# '{}'
184-
let pat = matchstr(a:pattern.after, '^.*{}[^*]*\%($\|[\\/]\)')
184+
let pat = matchstr(a:pattern, '^.*{}[^*]*\%($\|[\\/]\)')
185185
let post = a:pattern[strlen(pat) : -1]
186186
let results = map(split(glob(substitute(pat, '{}', '*', 'g')), "\n"), 'v:val.post')
187187
else

0 commit comments

Comments
 (0)