I must be missing how these are supposed to work together, but they
seem to be broken (as a pair). The Scintilla doc says to always call
SCI_SEARCHANCHOR "before calling either of SCI_SEARCHNEXT or
SCI_SEARCHPREV", and this works fine for SCI_SEARCHPREV... but it can
never advance past the current [selected] match with SCI_SEARCHNEXT
(since the same match keeps being found).
To make this model work, SCI_SEARCHANCHOR would need to magically know
that you are about to do a SCI_SEARCHNEXT, and set this "anchor" value
to the *end* of the current selection. Looked at another way,
SCI_SEARCH{PREV,NEXT} could just examine the current selection, and
pick whichever end is appropriate... but then why have
SCI_SEARCHANCHOR at all?
And yes, there are other ways to search - but what is up with this one?
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest