1
0
forked from VimPlug/jedi

Fix an error recovery goto issue, fixes davidhalter/jedi-vim#962

This commit is contained in:
Dave Halter
2019-12-23 10:08:43 +01:00
parent d9383f1927
commit eca8278eef
7 changed files with 26 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ def infer_call_of_leaf(context, leaf, cut_own_trailer=False):
base = power.children[start]
if base.type != 'trailer':
break
trailers = power.children[start + 1: index + 1]
trailers = power.children[start + 1:cut]
else:
base = power.children[0]
trailers = power.children[1:cut]