mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
fix toggleComment.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user