Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b26790f

Browse files
committed
Make pdb use pt style. Fixes #10478
1 parent 4031e36 commit b26790f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

IPython/terminal/debugger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def patch_stdout(**kwargs):
6363
mouse_support=self.shell.mouse_support,
6464
get_prompt_tokens=get_prompt_tokens,
6565
display_completions_in_columns=multicolumn,
66+
style=self.shell.style
6667
)
6768
self.pt_cli = CommandLineInterface(self._pt_app, eventloop=self.shell._eventloop)
6869

IPython/terminal/interactiveshell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def prompt():
235235
last_cell = cell
236236

237237
self._style = self._make_style_from_name_or_cls(self.highlighting_style)
238-
style = DynamicStyle(lambda: self._style)
238+
self.style = DynamicStyle(lambda: self._style)
239239

240240
editing_mode = getattr(EditingMode, self.editing_mode.upper())
241241

@@ -249,7 +249,7 @@ def patch_stdout(**kwargs):
249249
completer=IPythonPTCompleter(shell=self,
250250
patch_stdout=patch_stdout),
251251
enable_history_search=True,
252-
style=style,
252+
style=self.style,
253253
mouse_support=self.mouse_support,
254254
**self._layout_options()
255255
)

0 commit comments

Comments
 (0)