forked from VimPlug/jedi
use expression_list instead of commands or call_list
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ def array_for_pos(stmt, pos, array_types=None):
|
||||
if stmt.start_pos >= pos >= stmt.end_pos:
|
||||
return None, 0
|
||||
|
||||
for command in stmt.get_commands():
|
||||
for command in stmt.expression_list():
|
||||
arr = None
|
||||
if isinstance(command, pr.Array):
|
||||
arr, index = search_array(command, pos)
|
||||
|
||||
Reference in New Issue
Block a user