[issue41608] IDLE: multiple space deletion by Backspace after non-spaces

2021-04-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.11 -Python 3.10, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-lis

[issue41608] IDLE: multiple space deletion by Backspace after non-spaces

2021-04-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tests are needed. See review. Thinking about tests makes me realize that we need to extract an EditorText class that has the methods that only apply to the text component of EditorWindow. That is most of them. This would make testing easier because there

[issue41608] IDLE: multiple space deletion by Backspace after non-spaces

2021-04-28 Thread Tal Einat
Change by Tal Einat : Removed file: https://bugs.python.org/file4/pb_tool-3.1.0-py3-none-any.whl ___ Python tracker ___ ___ Python-bugs-

[issue41608] IDLE: multiple space deletion by Backspace after non-spaces

2021-04-28 Thread ปพนพัชร์ บรรพจันทร์
Change by ปพนพัชร์ บรรพจันทร์ : -- nosy: +ttx11529 Added file: https://bugs.python.org/file4/pb_tool-3.1.0-py3-none-any.whl ___ Python tracker ___ __

[issue41608] IDLE: multiple space deletion by Backspace after non-spaces

2020-08-23 Thread E. Paine
E. Paine added the comment: I have updated the PR for the following two suggestions: > I would rather trailing blocks be deleted all at once > Anything after [the prompt] is an indent and should be treated as such Again, consider the following examples (apologies about the last ones: I have

[issue41608] IDLE: multiple space deletion by Backspace after non-spaces

2020-08-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your example is 4 spaces, 3 (non-space) chars, 2 spaces, 3 chars, 2 spaces. With the cursor after the 2 internal spaces, backspace deletes 1 space, not 2. However, with the first block expanded from 3 chars to 4, backspace deletes both spaces. Without out l