diff --git a/autoload/neosnippet/mappings.vim b/autoload/neosnippet/mappings.vim index 8e022ff..7639d2d 100644 --- a/autoload/neosnippet/mappings.vim +++ b/autoload/neosnippet/mappings.vim @@ -163,7 +163,7 @@ function! s:get_completed_snippets(cur_text, col) abort let cur_text = a:cur_text - if !empty(get(v:completed_item, 'user_data', '{}')) + if get(v:completed_item, 'user_data', '') !=# '' let user_data = json_decode(v:completed_item.user_data) if has_key(user_data, 'snippet') let snippet = user_data.snippet