> Chris Colman wrote:
> > I've just managed to get scintilla into an endless loop (doesn't
happen
> > in scite though).
> >
> > In my app I have a file opened with numourous instances of the word
> > 'strategy' in it.
> >
> > I go to the top of the file and do a case insensitive search/replace
of
> > 'strategy' with 'optimisticStrategy'. Well you can guess what
happens...
> >
> > Because the substituted word contains the searched for word
scintilla
> > keeps substituting the Strategy part that was put their by the
previous
> > replace - and this goes on ad infinitum. Am I doing something wrong
or
> > is this a bug?
> 
> I think there is something wrong in your wrapper code. Since this
> doesn't happens in SciTE, it shows you fall in a trap that was avoided
> in the SciTE implementation.

Does anyone know the trap so that I, also, can avoid it?

> 
> > I only worked this out when I saw the horizontal scroll bar thumb
> > getting narrower and narrower telling me that the lines were getting
> > longer and longer.
> 
> :-)
> 
> --
> Philippe Lhoste
> --  (near) Paris -- France
> --  http://Phi.Lho.free.fr
> --  --  --  --  --  --  --  --  --  --  --  --  --  --
> _______________________________________________
> Scintilla-interest mailing list
> [email protected]
> http://mailman.lyra.org/mailman/listinfo/scintilla-interest

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to