From 3fe2223a48465c58c48a5a6a30ecf13ab92f7b97 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 9 Oct 2019 10:12:31 +0100 Subject: [PATCH] Fix #2800 - Ignore completion user data which is not a dictionary --- autoload/ale/completion.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index 177a6acb..a15ca514 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -734,6 +734,10 @@ function! ale#completion#HandleUserData(completed_item) abort let l:user_data = json_decode(l:user_data_json) + if type(l:user_data) isnot v:t_dict + return + endif + for l:code_action in get(l:user_data, 'codeActions', []) call ale#code_action#HandleCodeAction(l:code_action) endfor