Updated plugins
This commit is contained in:
1 parent
57ba28a9a2
commit
9c54d954f6
21 files changed
+201
-65
No files matched your search
@@ -84,11 +84,14 @@ function! s:CheckForBadConfig(buffer, lines) abort
|
||||
endfunction
|
||||
|
||||
function! s:parseJSON(buffer, lines) abort
|
||||
try
|
||||
let l:parsed = json_decode(a:lines[-1])
|
||||
catch
|
||||
return []
|
||||
endtry
|
||||
let l:parsed = []
|
||||
|
||||
for l:line in a:lines
|
||||
try
|
||||
let l:parsed = extend(l:parsed, json_decode(l:line))
|
||||
catch
|
||||
endtry
|
||||
endfor
|
||||
|
||||
if type(l:parsed) != v:t_list || empty(l:parsed)
|
||||
return []
|
||||
|
||||
Reference in new issue
Block a user