X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.vim%2Fftplugin%2Fhtml.vim;fp=.vim%2Fftplugin%2Fhtml.vim;h=5549c67560abfd25afbf88aef71f08f02bf91f4a;hp=3950834895045b71d324e60d1f897f3bb91a503a;hb=5f5dda45d35697bcc169ba8383e98ee9e5c3d8b3;hpb=cf25d2ea303b98cc319565cc4a1e80358bb08458 diff --git a/.vim/ftplugin/html.vim b/.vim/ftplugin/html.vim index 3950834..5549c67 100644 --- a/.vim/ftplugin/html.vim +++ b/.vim/ftplugin/html.vim @@ -6,7 +6,7 @@ if version >= 702 && has("iconv") && !exists('b:encoding_set') " Try to recognize the file encoding and convert the file let encoding = system("get_html_encoding.py " . shellescape(expand("%"))) if !v:shell_error - if strlen(encoding) != 0 + if !empty(encoding) call SetupEncoding(encoding) endif endif