Possibly the wrap dialog should refocus the find dialog on acceptance on the wrap dialog, "somebody" providing a good PR would likely be accepted.

As was mentioned in #4007 Geany only finds ONE match at a time.

When the search is started it begins at the cursor when the find dialog is opened and stops at the first match it finds.

If the find dialog remains focussed the match remains valid because no file contents can change, so find starts from the start/end of the match when the previous/next button is triggered.

But Geany allows a user to edit contents by fosussing the editor while the find dialog is still open. That means that any match the search had might not be valid any more, so the find again starts at the cursor when previous/next is selected.

In each case a single search has a start point, there is no sequence, the search either finds the previous/next match or it finds no match between the start point and wrap to the start point again. The only point is the point the particular search starts with, not a sequence that might represent a loop.

The scrollbar issue has been addressed in #4008, and the counts have been addressed in #4007, don't keep repeating them, it won't change the answer.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/4021/2442942138@github.com>