Handle omnifunc returning dict with 'words'

This commit is contained in:
Strahinja Val Markovic 2013-02-23 09:35:07 -08:00
parent c61c9f6051
commit c1700c7d19

View File

@ -53,7 +53,8 @@ class OmniCompleter( Completer ):
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 ):