Commit 7f53aea5 authored by Terry Jan Reedy's avatar Terry Jan Reedy

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

Patch by Roger Serwy.
parent 63e6c322
...@@ -1134,7 +1134,10 @@ class EditorWindow(object): ...@@ -1134,7 +1134,10 @@ class EditorWindow(object):
assert have > 0 assert have > 0
want = ((have - 1) // self.indentwidth) * self.indentwidth want = ((have - 1) // self.indentwidth) * self.indentwidth
# Debug prompt is multilined.... # Debug prompt is multilined....
if self.context_use_ps1:
last_line_of_prompt = sys.ps1.split('\n')[-1] last_line_of_prompt = sys.ps1.split('\n')[-1]
else:
last_line_of_prompt = ''
ncharsdeleted = 0 ncharsdeleted = 0
while 1: while 1:
if chars == last_line_of_prompt: if chars == last_line_of_prompt:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment