From 46f0fc3d9db8f5dac74022267ff73d1dc45b2ecd 2015-09-28 07:39:41 From: Gábor Luk Date: 2015-09-28 07:39:41 Subject: [PATCH] Make sure prompt color doesn't affect rest of line --- diff --git a/IPython/core/debugger.py b/IPython/core/debugger.py index 7911af8..8b5f2b9 100644 --- a/IPython/core/debugger.py +++ b/IPython/core/debugger.py @@ -271,7 +271,7 @@ class Pdb(OldPdb): # Set the prompt Colors = cst.active_colors - self.prompt = u'%s%s' % (Colors.prompt, prompt) # The default prompt is '(Pdb)' + self.prompt = u'%s%s%s' % (Colors.prompt, prompt, Colors.Normal) # The default prompt is '(Pdb)' def set_colors(self, scheme): """Shorthand access to the color table scheme selector method."""