Skip to content

fix(gui): prevent unlimited recursion in text search (#2685)#2694

Merged
skylot merged 1 commit intoskylot:masterfrom
jpstotz:search
Nov 6, 2025
Merged

fix(gui): prevent unlimited recursion in text search (#2685)#2694
skylot merged 1 commit intoskylot:masterfrom
jpstotz:search

Conversation

@jpstotz
Copy link
Copy Markdown
Collaborator

@jpstotz jpstotz commented Nov 6, 2025

In my understanding the part that causes the unlimited recursion of issue #2685 was responsible for continuing search for the beginning of a file, when the end of the text was reached (or the other way around when searching backward).

As RSyntaxTextArea SearchContext has the searchWrap property which enabled searching exactly using that behavior we can get rid of the recursive search call and let RSyntaxTextArea do the work.

fixes #2685

Copy link
Copy Markdown
Owner

@skylot skylot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍

@skylot skylot merged commit cda1b1a into skylot:master Nov 6, 2025
4 checks passed
@jpstotz jpstotz deleted the search branch November 20, 2025 19:33
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.

[gui] Regex search starting with '(' causes jadx-gui to freeze

2 participants