cpython: 6099d9dd0c26 (original) (raw)
Mercurial > cpython
changeset 74420:6099d9dd0c26
Merge with 3.2 #13039 allow proper deletion of '>>> ' in IDLE editor windows. Patch by Roger Serwy. [#13039]
Terry Jan Reedy tjreedy@udel.edu | |
---|---|
date | Sun, 15 Jan 2012 19:08:28 -0500 |
parents | 40e1be1e0707(current diff)c6e7473b1fb5(diff) |
children | c0660d7cc1fe |
files | |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-)[+] [-] Lib/idlelib/EditorWindow.py 5 |
line wrap: on
line diff
--- 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][](#l1.7)
if self.context_use_ps1:[](#l1.8)
last_line_of_prompt = sys.ps1.split('\n')[-1][](#l1.9)
else:[](#l1.10)
last_line_of_prompt = ''[](#l1.11) ncharsdeleted = 0[](#l1.12) while 1:[](#l1.13) if chars == last_line_of_prompt:[](#l1.14)