Skip to content

Commit

Permalink
Merge pull request #10479 from memeplex/pdbstyle
Browse files Browse the repository at this point in the history
Make pdb use pt style. Fixes #10478
  • Loading branch information
takluyver committed Apr 24, 2017
2 parents 4031e36 + b26790f commit 075c197
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions IPython/terminal/debugger.py
Expand Up @@ -63,6 +63,7 @@ def patch_stdout(**kwargs):
mouse_support=self.shell.mouse_support,
get_prompt_tokens=get_prompt_tokens,
display_completions_in_columns=multicolumn,
style=self.shell.style
)
self.pt_cli = CommandLineInterface(self._pt_app, eventloop=self.shell._eventloop)

Expand Down
4 changes: 2 additions & 2 deletions IPython/terminal/interactiveshell.py
Expand Up @@ -235,7 +235,7 @@ def prompt():
last_cell = cell

self._style = self._make_style_from_name_or_cls(self.highlighting_style)
style = DynamicStyle(lambda: self._style)
self.style = DynamicStyle(lambda: self._style)

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

Expand All @@ -249,7 +249,7 @@ def patch_stdout(**kwargs):
completer=IPythonPTCompleter(shell=self,
patch_stdout=patch_stdout),
enable_history_search=True,
style=style,
style=self.style,
mouse_support=self.mouse_support,
**self._layout_options()
)
Expand Down

0 comments on commit 075c197

Please sign in to comment.