fix test.

This commit is contained in:
mattn
2012-07-02 13:14:23 +09:00
parent 490802965d
commit 5244c6ec5e
2 changed files with 6 additions and 1 deletions

View File

@@ -580,6 +580,11 @@ function! zencoding#ExpandWord(abbr, type, orig)
for item in items
let expand .= zencoding#toString(item, a:type, 0, filters)
endfor
if zencoding#useFilter(filters, 'e')
let expand = substitute(expand, '&', '\&', 'g')
let expand = substitute(expand, '<', '\&lt;', 'g')
let expand = substitute(expand, '>', '\&gt;', 'g')
endif
if a:orig == 0
let expand = substitute(expand, '\${lang}', s:zen_settings.lang, 'g')
let expand = substitute(expand, '\${charset}', s:zen_settings.charset, 'g')