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