The issue is still easy to reproduce:
>>>
* h1
aaaaa
* h2
bbbbb
* h3
bbbbb
* h4
ccccc
<<<
Fold all. On * h1 call swiper-isearch, enter bbb and select the first match. -> h2 cannot be unfold anymore.
If you repeat it and select the second match then h3 cannot be unfold anymore, but h2 works again.
(org-fold-core--clear-isearch-overlays) still fixes the buffer.

Am Fr., 4. Aug. 2023 um 16:11 Uhr schrieb William Denton <wtd@pobox.com>:
On 4 August 2023, Michael Dauer wrote:

> I'm on main (Org mode version 9.7-pre (release_9.6.7-594-gf03b83), and it's
> not fixed. Am I missing something?

The fix did fix it for me, and the problem went away.  It did seem to introduce
a new problem with searching in a buffer with Swiper, where the search would
fail or throw an error or require me to collapse headings before it would work,
but that hasn't happened in a while and I didn't try to debug it.


Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
CO₂: 421.92 ppm (Mauna Loa Observatory, 2023-08-03)