Merge pull request #328 from JazzCore/jedi_keyword_check
Use new Jedi API for keyword checking in goto funcs
This commit is contained in:
commit
468e245bcb
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user