fix toggleComment.

This commit is contained in:
mattn
2012-05-30 22:08:07 +09:00
parent dd44d64d56
commit 06dd83dad3

View File

@@ -421,7 +421,8 @@ function! zencoding#imageSize()
endfunction
function! zencoding#toggleComment()
let rtype = len(globpath(&rtp, 'autoload/zencoding/lang/'.&ft.'.vim')) ? &ft : 'html'
let type = zencoding#getFileType()
let rtype = len(globpath(&rtp, 'autoload/zencoding/lang/'.type.'.vim')) ? type : 'html'
return zencoding#lang#{rtype}#toggleComment()
endfunction