Skip to content

Commit

Permalink
Fix path globbing to match older builds
Browse files Browse the repository at this point in the history
Older Vim builds do not support the `{list}` argument of `globpath()`
  • Loading branch information
idanarye committed Aug 18, 2016
1 parent ea7fce1 commit 66dd416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion autoload/smile/loading.vim
Expand Up @@ -29,7 +29,8 @@ function! smile#loading#load(path) abort
endfunction

function! s:findPaths(name) abort
return globpath(&runtimepath, 'autoload/smile/resource/'.a:name.'.sml', 0, 1)
let l:globResult = globpath(&runtimepath, 'autoload/smile/resource/'.a:name.'.sml')
return split(l:globResult, '\v\r\n|\n|\r')
endfunction

function! smile#loading#loadFromRuntime(name) abort
Expand Down
2 changes: 1 addition & 1 deletion doc/smile.txt
Expand Up @@ -4,7 +4,7 @@
Author: Idan Arye <https://github.com/idanarye/>
License: Same terms as Vim itself (see |license|)

Version: 1.0.0
Version: 1.0.1

INTRODUCTION *smile*

Expand Down

0 comments on commit 66dd416

Please sign in to comment.