Show More
@@ -6,6 +6,8 b' import sys' | |||
|
6 | 6 | |
|
7 | 7 | from IPython.core.displayhook import DisplayHook |
|
8 | 8 | |
|
9 | from prompt_toolkit.layout.utils import token_list_width | |
|
10 | ||
|
9 | 11 | class Prompts(object): |
|
10 | 12 | def __init__(self, shell): |
|
11 | 13 | self.shell = shell |
@@ -18,8 +20,7 b' class Prompts(object):' | |||
|
18 | 20 | ] |
|
19 | 21 | |
|
20 | 22 | def _width(self): |
|
21 |
|
|
|
22 | return sum(len(s) for (t, s) in in_tokens) | |
|
23 | return token_list_width(self.in_prompt_tokens()) | |
|
23 | 24 | |
|
24 | 25 | def continuation_prompt_tokens(self, cli=None, width=None): |
|
25 | 26 | if width is None: |
General Comments 0
You need to be logged in to leave comments.
Login now