From df3e61ba69132e626b4276b4cc5c18c7b7631db1 Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 6 Dec 2013 20:31:43 +0900 Subject: [PATCH] Fixes #178 --- autoload/emmet.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/emmet.vim b/autoload/emmet.vim index 3da7424..9ff6be3 100644 --- a/autoload/emmet.vim +++ b/autoload/emmet.vim @@ -339,7 +339,8 @@ function! emmet#getFileType(...) endif endfor if type == 'html' - let type = synIDattr(synID(line("."), col("."), 1), "name") + let pos = emmet#util#getcurpos() + let type = synIDattr(synID(pos[1], pos[2], 1), "name") if type =~ '^css\w' let type = 'css' endif