Show More
@@ -1340,7 +1340,6 b' class IPCompleter(Completer):' | |||||
1340 | namespaces.append(self.global_namespace) |
|
1340 | namespaces.append(self.global_namespace) | |
1341 |
|
1341 | |||
1342 | completion_filter = lambda x:x |
|
1342 | completion_filter = lambda x:x | |
1343 | # cursor_pos is an it, jedi wants line and column |
|
|||
1344 | offset = cursor_to_position(text, cursor_line, cursor_column) |
|
1343 | offset = cursor_to_position(text, cursor_line, cursor_column) | |
1345 | # filter output if we are completing for object members |
|
1344 | # filter output if we are completing for object members | |
1346 | if offset: |
|
1345 | if offset: | |
@@ -1356,7 +1355,7 b' class IPCompleter(Completer):' | |||||
1356 | raise ValueError("Don't understand self.omit__names == {}".format(self.omit__names)) |
|
1355 | raise ValueError("Don't understand self.omit__names == {}".format(self.omit__names)) | |
1357 |
|
1356 | |||
1358 | interpreter = jedi.Interpreter( |
|
1357 | interpreter = jedi.Interpreter( | |
1359 | text, namespaces, column=cursor_column, line=cursor_line + 1) |
|
1358 | text[:offset], namespaces, column=cursor_column, line=cursor_line + 1) | |
1360 | try_jedi = True |
|
1359 | try_jedi = True | |
1361 |
|
1360 | |||
1362 | try: |
|
1361 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now