Robert Roessler wrote:
I must be missing how these are supposed to work together, but they
seem to be broken (as a pair).
SCI_SEARCHANCHOR came from John Ehresman and Stephan Diebel for
their Wing IDE where they needed a version of search that could be
recorded into macros. I've never used it myself.
OK... but shouldn't we get an official pronouncement (like from you or
the authors) that it does or doesn't work as documented, and then follow
up on that accordingly? By fixing it if required (although the problem
seems to me like it could be a design flaw), or documenting the
limitation if it does turn out to be a problem?
If the text at the search anchor matches the search text, it is found by
search-next so that the first such search finds it. To search for the
next occurrence after previously performing a search, advance the
character one by using char-right, reset the anchor with search-anchor,
and then search. This requires a bit of work by the code that
interfaces with scintilla, but has the advantage of being simple to
understand.
John
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest