Fix next item in CSS

This commit is contained in:
Yasuhiro Matsumoto
2019-06-24 23:20:54 +09:00
parent 5a7c7930c6
commit f4afd031a3
2 changed files with 6 additions and 9 deletions

View File

@@ -380,7 +380,7 @@ function! emmet#getFileType(...) abort
endif
let pos = emmet#util#getcurpos()
let type = synIDattr(synID(pos[1], pos[2], 1), 'name')
let type = synIDattr(synID(max([pos[1], 1]), max([pos[2], 1]), 1), 'name')
" ignore htmlTagName as it seems to occur too often
if type == 'htmlTagName'