This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE: Replace All up, no wrap replaces one up, all down
Type: behavior Stage: needs patch
Components: IDLE Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: Qwert225, terry.reedy
Priority: normal Keywords:

Created on 2016-08-15 15:13 by Qwert225, last changed 2022-04-11 14:58 by admin.

Messages (3)
msg272768 - (view) Author: (Qwert225) Date: 2016-08-15 15:13
IDLE's "Replace All" option with up direction and disabled "Wrap around" replaces only the bottommost of all matching upward entries instead of replacing all matching upward entries.
msg272769 - (view) Author: (Qwert225) Date: 2016-08-15 15:27
EDIT: IDLE's "Replace All" with up direction and no wrapping replaces one upward matching entry and all downward matching entries even though it is set to replace all upward entries.
msg272792 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2016-08-15 19:31
Edited title to fit in the box.  Minimal reproducer, which can become a test.  File as follows, where '|' represent the cursor, not the character.

a
a|
a

Cntl-H, enter search for 'a', replace with 'b', check 'up', uncheck 'wrap', click Replace All.  Result matches what you said.

a
b
b

Thanks for the report. This is definitely a bug.  In the future, try to post a minimal example, such as the above, as well as a description.   Whether I backport a fix depends on how easy it would be.
History
Date User Action Args
2022-04-11 14:58:34adminsetgithub: 71956
2020-06-06 19:35:26terry.reedysetversions: + Python 3.10, - Python 3.6
2016-08-15 19:31:56terry.reedysettitle: IDLE's "Replace All" with up direction and no wrapping replaces one upward and all downward entries instead of replacing all upward entries. -> IDLE: Replace All up, no wrap replaces one up, all down
stage: needs patch
messages: + msg272792
versions: + Python 3.6, - Python 3.5
2016-08-15 15:27:48Qwert225setmessages: + msg272769
title: "Replace All" with up direction and no wrapping replaces only the bottommost of all matching upward entries -> IDLE's "Replace All" with up direction and no wrapping replaces one upward and all downward entries instead of replacing all upward entries.
2016-08-15 15:13:41Qwert225create