Fix js_encode() error

This commit is contained in:
Shougo Matsushita 2017-07-15 08:37:03 +09:00
parent 867149c566
commit d6333c191b

View File

@ -158,10 +158,10 @@ function! neosnippet#helpers#substitute_selected_text(type, text) abort "{{{
endfunction"}}} endfunction"}}}
function! neosnippet#helpers#vim2json(expr) abort "{{{ function! neosnippet#helpers#vim2json(expr) abort "{{{
return has('patch-7.4.1498') ? js_encode(a:expr) : string(a:expr) return has('patch-7.4.1498') ? json_encode(a:expr) : string(a:expr)
endfunction "}}} endfunction "}}}
function! neosnippet#helpers#json2vim(expr) abort "{{{ function! neosnippet#helpers#json2vim(expr) abort "{{{
sandbox return has('patch-7.4.1498') ? js_decode(a:expr) : eval(a:expr) sandbox return has('patch-7.4.1498') ? json_decode(a:expr) : eval(a:expr)
endfunction "}}} endfunction "}}}
function! s:is_beginning_of_line(cur_text) abort "{{{ function! s:is_beginning_of_line(cur_text) abort "{{{