Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDLE: Replace All up, no wrap replaces one up, all down #71956

Open
Qwert225 mannequin opened this issue Aug 15, 2016 · 3 comments
Open

IDLE: Replace All up, no wrap replaces one up, all down #71956

Qwert225 mannequin opened this issue Aug 15, 2016 · 3 comments
Assignees
Labels
3.10 only security fixes topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@Qwert225
Copy link
Mannequin

Qwert225 mannequin commented Aug 15, 2016

BPO 27769
Nosy @terryjreedy

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/terryjreedy'
closed_at = None
created_at = <Date 2016-08-15.15:13:41.778>
labels = ['expert-IDLE', 'type-bug', '3.10']
title = 'IDLE: Replace All up, no wrap replaces one up, all down'
updated_at = <Date 2020-06-06.19:35:26.959>
user = 'https://bugs.python.org/Qwert225'

bugs.python.org fields:

activity = <Date 2020-06-06.19:35:26.959>
actor = 'terry.reedy'
assignee = 'terry.reedy'
closed = False
closed_date = None
closer = None
components = ['IDLE']
creation = <Date 2016-08-15.15:13:41.778>
creator = 'Qwert225'
dependencies = []
files = []
hgrepos = []
issue_num = 27769
keywords = []
message_count = 3.0
messages = ['272768', '272769', '272792']
nosy_count = 2.0
nosy_names = ['terry.reedy', 'Qwert225']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue27769'
versions = ['Python 3.10']

@Qwert225
Copy link
Mannequin Author

Qwert225 mannequin commented Aug 15, 2016

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.

@Qwert225 Qwert225 mannequin assigned terryjreedy Aug 15, 2016
@Qwert225 Qwert225 mannequin added topic-IDLE type-bug An unexpected behavior, bug, or error labels Aug 15, 2016
@Qwert225
Copy link
Mannequin Author

Qwert225 mannequin commented Aug 15, 2016

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.

@Qwert225 Qwert225 mannequin changed the 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. Aug 15, 2016
@terryjreedy
Copy link
Member

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.

@terryjreedy terryjreedy changed the title 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 Aug 15, 2016
@terryjreedy terryjreedy added the 3.10 only security fixes label Jun 6, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 only security fixes topic-IDLE type-bug An unexpected behavior, bug, or error
Projects
Status: No status
Development

No branches or pull requests

1 participant