summaryrefslogtreecommitdiff
path: root/autoload/deoplete/handler.vim
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2020-06-08 19:18:50 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2020-06-08 19:18:50 +0900
commit46ba9b23f750c5e7fe0fb1c89abee4b6fe670c66 (patch)
tree715207a6d3ec16baba370a25c018ab538d8bbc43 /autoload/deoplete/handler.vim
parente3b0ccbf4ba105cabeb89c3dbbbbe5ba35a45156 (diff)
downloaddeoplete.nvim-46ba9b23f750c5e7fe0fb1c89abee4b6fe670c66.zip
Fix user_data
Diffstat (limited to 'autoload/deoplete/handler.vim')
-rw-r--r--autoload/deoplete/handler.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/deoplete/handler.vim b/autoload/deoplete/handler.vim
index 767bb5b..18e6633 100644
--- a/autoload/deoplete/handler.vim
+++ b/autoload/deoplete/handler.vim
@@ -330,13 +330,13 @@ function! s:on_complete_done() abort
call deoplete#handler#_skip_next_completion()
- if type(get(v:completed_item, 'user_data', '')) !=# v:t_string
- \ || v:completed_item.user_data ==# ''
+ let user_data = get(v:completed_item, 'user_data', '')
+ if type(user_data) !=# v:t_string || user_data ==# ''
return
endif
try
- call s:substitute_suffix(json_decode(v:completed_item.user_data))
+ call s:substitute_suffix(json_decode(user_data))
catch /.*/
endtry
endfunction