From c1700c7d19dc64bf6572d3b9aa420f27d462f725 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 23 Feb 2013 09:35:07 -0800 Subject: [PATCH] Handle omnifunc returning dict with 'words' --- python/completers/all/omni_completer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/completers/all/omni_completer.py b/python/completers/all/omni_completer.py index 9aa9f3c8..551e4db4 100644 --- a/python/completers/all/omni_completer.py +++ b/python/completers/all/omni_completer.py @@ -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 ):