Skip to content

Commit 2aaf3ac

Browse files
VItalizer: vim file match tune up
Co-authored-by: haya14busa <[email protected]>
1 parent 04e0204 commit 2aaf3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/vitalizer.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ function! vitalizer#vitalize(name, to, modules, hash) abort
490490
call s:copy(from, to)
491491
" .vim is module file/otherwise data file
492492
" module file need autoloadablize process
493-
if -1 !=? match(to, '\.vim$')
493+
if fnamemodify(to, ':e') ==# 'vim'
494494
let module_name = s:file2module_name(to)
495495
if has_key(all_modules, module_name)
496496
call s:autoloadablize(to, vital_data.name, all_modules[module_name])

0 commit comments

Comments
 (0)