Merge pull request #328 from JazzCore/jedi_keyword_check

Use new Jedi API for keyword checking in goto funcs
This commit is contained in:
Val Markovic 2013-05-18 14:26:54 -07:00
commit 468e245bcb

View File

@ -140,7 +140,7 @@ class JediCompleter( ThreadedCompleter ):
if len( definition_list ) == 1: if len( definition_list ) == 1:
definition = definition_list[ 0 ] definition = definition_list[ 0 ]
if definition.in_builtin_module(): if definition.in_builtin_module():
if isinstance( definition.name, jedi.keywords.Keyword ): if definition.is_keyword:
vimsupport.PostVimMessage( vimsupport.PostVimMessage(
"Cannot get the definition of Python keywords." ) "Cannot get the definition of Python keywords." )
else: else: