mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04:27 +08:00
fix toggleComment.
This commit is contained in:
@@ -421,7 +421,8 @@ function! zencoding#imageSize()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! zencoding#toggleComment()
|
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()
|
return zencoding#lang#{rtype}#toggleComment()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user