##// END OF EJS Templates
Don't update width of prompt area...
Thomas Kluyver -
Show More
@@ -403,10 +403,10 b' class PromptManager(Configurable):'
403
403
404 # Handle justification of prompt
404 # Handle justification of prompt
405 invis_chars = self.invisible_chars[name] if color else 0
405 invis_chars = self.invisible_chars[name] if color else 0
406 self.txtwidth = _lenlastline(res) - invis_chars
406 # self.txtwidth = _lenlastline(res) - invis_chars
407 just = self.justify if (just is None) else just
407 just = self.justify if (just is None) else just
408 # If the prompt spans more than one line, don't try to justify it:
408 # If the prompt spans more than one line, don't try to justify it:
409 if just and name != 'in' and ('\n' not in res) and ('\r' not in res):
409 if just and name != 'in' and ('\n' not in res) and ('\r' not in res):
410 res = res.rjust(self.width + invis_chars)
410 res = res.rjust(self.width + invis_chars)
411 self.width = _lenlastline(res) - invis_chars
411 # self.width = _lenlastline(res) - invis_chars
412 return res
412 return res
General Comments 0
You need to be logged in to leave comments. Login now