Show More
@@ -45,11 +45,16 b' class ZMQCompleter(IPCompleter):' | |||
|
45 | 45 | code=line, |
|
46 | 46 | cursor_pos=cursor_pos, |
|
47 | 47 | ) |
|
48 |
|
|
|
48 | ||
|
49 | 49 | msg = self.client.shell_channel.get_msg(timeout=self.timeout) |
|
50 | 50 | if msg['parent_header']['msg_id'] == msg_id: |
|
51 |
c |
|
|
52 | return [ line[:cursor_start] + m for m in msg['content']['matches'] ] | |
|
51 | content = msg['content'] | |
|
52 | cursor_start = content['cursor_start'] | |
|
53 | matches = [ line[:cursor_start] + m for m in content['matches'] ] | |
|
54 | if content["cursor_end"] < cursor_pos: | |
|
55 | extra = line[content["cursor_end"]: cursor_pos] | |
|
56 | matches = [m + extra for m in matches] | |
|
57 | return matches | |
|
53 | 58 | return [] |
|
54 | 59 | |
|
55 | 60 | def rlcomplete(self, text, state): |
General Comments 0
You need to be logged in to leave comments.
Login now