Check b:asyncomplete_active_sources exists (#243)

This commit is contained in:
mattn
2020-11-27 23:26:14 +09:00
committed by GitHub
parent 87fdbf6414
commit 4fba3b64fa

View File

@@ -376,7 +376,7 @@ function! asyncomplete#_force_refresh() abort
let s:matches = {}
for l:source_name in b:asyncomplete_active_sources
for l:source_name in get(b:, 'asyncomplete_active_sources', [])
let s:matches[l:source_name] = { 'startcol': l:startcol, 'status': 'idle', 'items': [], 'refresh': 0, 'ctx': l:ctx }
endfor