mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 10:44:24 +08:00
fix bugemmet.vim
in files with double extension type: "hola.txt.md" it generated an error it is because you were passing a null to len() that detects if the file does not have an extension len(type)==0
This commit is contained in:
@@ -430,7 +430,7 @@ function! emmet#getFileType(...) abort
|
||||
endfor
|
||||
endif
|
||||
|
||||
return len(type) == 0 ? 'html' : type
|
||||
return empty(type) ? 'html' : type
|
||||
endfunction
|
||||
|
||||
function! emmet#getDollarExprs(expand) abort
|
||||
|
||||
Reference in New Issue
Block a user