Fix #418 user_data support

This commit is contained in:
Shougo Matsushita 2018-02-19 06:58:24 +09:00
父節點 ef8729c7cc
當前提交 f514e3be28
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -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