mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04:27 +08:00
fix guessing utf-8
This commit is contained in:
@@ -149,7 +149,7 @@ function! zencoding#util#getContentFromURL(url)
|
|||||||
let s1 = len(split(res, '?'))
|
let s1 = len(split(res, '?'))
|
||||||
let utf8 = iconv(res, 'utf-8', &encoding)
|
let utf8 = iconv(res, 'utf-8', &encoding)
|
||||||
let s2 = len(split(utf8, '?'))
|
let s2 = len(split(utf8, '?'))
|
||||||
return s2 > s1 * 2 ? utf8 : res
|
return (s2 == s1 || s2 >= s1 * 2) ? utf8 : res
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! zencoding#util#getTextFromHTML(buf)
|
function! zencoding#util#getTextFromHTML(buf)
|
||||||
|
|||||||
Reference in New Issue
Block a user