forked from VimPlug/jedi
Exchange the completion trailer evaluation logic. It's way more consistent now.
This commit is contained in:
@@ -88,6 +88,8 @@ def call_of_leaf(leaf, cut_own_trailer=False):
|
||||
# different trailers: `( x )`, `[ x ]` and `.x`. In the first two examples
|
||||
# we should not match anything more than x.
|
||||
if trailer.type != 'trailer' or leaf not in (trailer.children[0], trailer.children[-1]):
|
||||
if trailer.type == 'atom':
|
||||
return trailer
|
||||
return leaf
|
||||
|
||||
power = trailer.parent
|
||||
|
||||
Reference in New Issue
Block a user