Handle omnifunc returning dict with 'words'
This commit is contained in:
parent
c61c9f6051
commit
c1700c7d19
@ -53,7 +53,8 @@ class OmniCompleter( Completer ):
|
|||||||
vimsupport.EscapeForVim( query ),
|
vimsupport.EscapeForVim( query ),
|
||||||
"')" ]
|
"')" ]
|
||||||
|
|
||||||
self.stored_candidates = vim.eval( ''.join( omnifunc_call ) )
|
items = vim.eval( ''.join( omnifunc_call ) )
|
||||||
|
self.stored_candidates = items.words if hasattr( items, 'words' ) else items
|
||||||
|
|
||||||
|
|
||||||
def AsyncCandidateRequestReadyInner( self ):
|
def AsyncCandidateRequestReadyInner( self ):
|
||||||
|
Loading…
Reference in New Issue
Block a user