diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2012-01-16 00:08:28 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2012-01-16 00:08:28 (GMT) |
commit | 2d496005fdd918190a09ddceed69baee8d9c8bf5 (patch) | |
tree | 21a50b99c97e962e9330722ab8ddfc2b83bbfa87 /Lib | |
parent | f5b62a9b314e71e6bd5014be92ad1d10ff8e0d63 (diff) | |
parent | 7f53aea53b4b1d0da69d004e57715d3943797b26 (diff) | |
download | cpython-2d496005fdd918190a09ddceed69baee8d9c8bf5.zip cpython-2d496005fdd918190a09ddceed69baee8d9c8bf5.tar.gz cpython-2d496005fdd918190a09ddceed69baee8d9c8bf5.tar.bz2 |
Merge with 3.2 #13039 allow proper deletion of '>>> ' in IDLE editor windows.
Patch by Roger Serwy.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 203a195..f47a9c1 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -1134,7 +1134,10 @@ class EditorWindow(object): assert have > 0 want = ((have - 1) // self.indentwidth) * self.indentwidth # Debug prompt is multilined.... - last_line_of_prompt = sys.ps1.split('\n')[-1] + if self.context_use_ps1: + last_line_of_prompt = sys.ps1.split('\n')[-1] + else: + last_line_of_prompt = '' ncharsdeleted = 0 while 1: if chars == last_line_of_prompt: |