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:
Pedro Pozo
2025-07-14 21:12:24 -04:00
committed by GitHub
parent 6c511a8d7d
commit 56199c129a

View File

@@ -430,7 +430,7 @@ function! emmet#getFileType(...) abort
endfor endfor
endif endif
return len(type) == 0 ? 'html' : type return empty(type) ? 'html' : type
endfunction endfunction
function! emmet#getDollarExprs(expand) abort function! emmet#getDollarExprs(expand) abort