Skip to content

Commit

Permalink
Fix for older versions of Vim
Browse files Browse the repository at this point in the history
Where globpath can not split lines by itself...
  • Loading branch information
idanarye committed Oct 4, 2014
1 parent adb20e2 commit f2dd024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/dutyl/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function! dutyl#util#globInParentDirectories(patterns) abort
let l:patterns=[a:patterns]
endif
while 1
let l:matches=filter(map(copy(l:patterns),'globpath(l:path,v:val,1,1)'),'!empty(v:val)')
let l:matches=filter(map(copy(l:patterns),'dutyl#util#splitLines(globpath(l:path,v:val,1))'),'!empty(v:val)')
if !empty(l:matches)
let l:result=[]
for l:match in l:matches
Expand Down

0 comments on commit f2dd024

Please sign in to comment.