diff --git a/python/completers/all/omni_completer.py b/python/completers/all/omni_completer.py index 2c8f93be..abea1d8d 100644 --- a/python/completers/all/omni_completer.py +++ b/python/completers/all/omni_completer.py @@ -75,8 +75,9 @@ class OmniCompleter( Completer ): "')" ] items = vim.eval( ''.join( omnifunc_call ) ) - if hasattr( items, 'words' ): - items = items.words + + if 'words' in items: + items = items['words'] if not hasattr( items, '__iter__' ): raise TypeError( OMNIFUNC_NOT_LIST )