On Sat, Jul 15, 2023 at 9:50 AM Sven Schreiber
<sven.schreiber(a)fu-berlin.de> wrote:
 I have a concrete example about how repeated searching in a script
 window shows strange behavior at least on Windows (perhaps because of
 GTK2?).
 Let's consider the code view of the ParMA package in the GUI program.
 This has 2095 lines, and let me search for the word "gnuplot". This
 occurs three times, on lines 1367, 1373, and 1379. Let's refer to them
 as 1,2,3.
 I'm observing different behavior depending on whether I hit the Enter
 key repeatedly in the search field or whether I click on the looking
 glass symbol with the mouse several times. With the keyboard I get the
 expected result, namely highlighting of the found terms in the right
 order (123123123123...).
 With the mouse, I'm sometimes seeing orderings like 1,2,1, (3 missing),
 or 1,3 (2 missing). Not every time, probably not even most of the time,
 but often enough. 
Here's what I've found. On Linux -- with both GTK2 and GTK3 --
clicking the search icon reliably cycles through the instances of the
search text in order. But on Windows with GTK2, as you say, this is
not reliable: sometimes the search skips forward or back. I haven't
yet had time to investigate the issue (and I haven't experimented with
a GTK3-based Windows build).
Allin