Merge pull request #246 from trefis/master

Error in OmniCompleter
This commit is contained in:
Val Markovic 2013-04-13 08:45:48 -07:00
commit 4704be50f9

View File

@ -75,8 +75,9 @@ class OmniCompleter( Completer ):
"')" ] "')" ]
items = vim.eval( ''.join( omnifunc_call ) ) 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__' ): if not hasattr( items, '__iter__' ):
raise TypeError( OMNIFUNC_NOT_LIST ) raise TypeError( OMNIFUNC_NOT_LIST )