From 56199c129a226dc37369c7a6888b568a4af36a2e Mon Sep 17 00:00:00 2001 From: Pedro Pozo Date: Mon, 14 Jul 2025 21:12:24 -0400 Subject: [PATCH] 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 --- autoload/emmet.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/emmet.vim b/autoload/emmet.vim index e242bea..86766d7 100644 --- a/autoload/emmet.vim +++ b/autoload/emmet.vim @@ -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