Skip to content

Conversation

@niten94
Copy link
Contributor

@niten94 niten94 commented Nov 18, 2025

This PR is based on a part of a branch I have which is a rebase of #3658, and includes the fix with displaying error messages on Find* actions. Please see the comments and commit message for slightly detailed explanations.

Unlike this patch, the error is returned and can be checked.

It was suggested in #3658 to name the type as RegexpSearch, but I chose a different name because it sounds like it would have methods and be search state of only one buffer, unlike RegexpGroup.

I also haven't been able to check and test the changes enough, so testing would be appreciated too.

Fixes #3700

matthias314 and others added 2 commits November 18, 2025 20:55
Compile an additional regex on each pad mode before searching in a
buffer, to return errors that could occur on padding regardless if the
mode will be used.

This mainly addresses \Q without \E.

Co-authored-by: matthias314 <[email protected]>
@JoeKar JoeKar mentioned this pull request Nov 18, 2025
@niten94 niten94 closed this Nov 20, 2025
@niten94 niten94 deleted the early-search-pad branch November 20, 2025 14:42
@niten94
Copy link
Contributor Author

niten94 commented Nov 20, 2025

I have closed this PR, since #3914 has been created and can fix #3700 better with a lot less changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: micro crashes if search query is \Q

2 participants