Skip to content

[3.13] gh-69365: Show search pattern errors in the IDLE search dialogs (GH-157598) - #157669

Open
miss-islington wants to merge 1 commit into
python:3.13from
miss-islington:backport-9ab004d-3.13
Open

miss-islington wants to merge 1 commit into
python:3.13from
miss-islington:backport-9ab004d-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Show the error in red below the entry and move the cursor to the
offending character in the pattern, instead of a message box. Find
Again without a dialog still uses the message box.

Check the pattern as typed, so that the position is right. This also
fixes the "Whole word" option with a regular expression: the pattern
is now grouped, so that "a|b" is anchored on both sides, and a pattern
ending with a backslash is an error instead of matching "\b".
(cherry picked from commit 9ab004d)

Co-authored-by: Serhiy Storchaka [email protected]
Co-authored-by: Claude Opus 5 (1M context) [email protected]

…pythonGH-157598)

Show the error in red below the entry and move the cursor to the
offending character in the pattern, instead of a message box. Find
Again without a dialog still uses the message box.

Check the pattern as typed, so that the position is right. This also
fixes the "Whole word" option with a regular expression: the pattern
is now grouped, so that "a|b" is anchored on both sides, and a pattern
ending with a backslash is an error instead of matching "\b".
(cherry picked from commit 9ab004d)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants