diff --git a/autoload/vimwiki/html.vim b/autoload/vimwiki/html.vim index 9c399a8..b2f7441 100644 --- a/autoload/vimwiki/html.vim +++ b/autoload/vimwiki/html.vim @@ -87,8 +87,9 @@ endfunction function! s:find_autoload_file(name) abort for path in split(&runtimepath, ',') let fname = path.'/autoload/vimwiki/'.a:name - if glob(fname) !=? '' - return fname + let match = glob(fname) + if match !=? '' + return match endif endfor return '' diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index 3fef93d..2c12b49 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -3924,6 +3924,7 @@ Contributors and their Github usernames in roughly chronological order: - Vinny Furia (@vinnyfuria) - paperbenni (@paperbenni) - Lily Foster (@lilyinstarlight) + - Thomas Leyh (@leyhline) ============================================================================== 16. Changelog *vimwiki-changelog* @@ -3994,6 +3995,7 @@ Changed:~ Removed:~ Fixed:~ + * Issue #1193: Fix wildcard expansion in |find_autoload_file| * PR #1108: Fix resolution of leading-slash page links, add link tests * Allow title values with quotes * Enable strikethrough for Neovim