#13039 allow proper deletion of '>>> ' in IDLE editor windows.

Patch by Roger Serwy.
This commit is contained in:
Terry Jan Reedy 2012-01-15 19:02:50 -05:00
parent bde7eacd85
commit 8ef4a70a48
1 changed files with 4 additions and 1 deletions

View File

@ -1135,7 +1135,10 @@ class EditorWindow(object):
assert have > 0
want = ((have - 1) // self.indentwidth) * self.indentwidth
# Debug prompt is multilined....
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: