Use new Jedi API for keyword checking in goto funcs

Fixes #320
This commit is contained in:
Stanislav Golovanov 2013-05-18 23:46:02 +04:00
parent ce7d3a0fc2
commit df7d51aeda

View File

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