[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] eric: Infinite loop in search and replace
From:       Detlev Offenbach <detlev () die-offenbachs ! de>
Date:       2004-10-28 17:20:29
Message-ID: 200410281920.29480.detlev () die-offenbachs ! de
[Download RAW message or body]

Am Donnerstag, 28. Oktober 2004 06:15 schrieb Parzival Herzog:
> I replaced text "file" with "filename", a range of lines was selected,
> and the "wrap around" option was selected. I pressed "replace all", and
> Eric proceeded to infinitely replace text, windows flashing scrollbars
> bouncing, but otherwise totally unresponsive. I had to kill the process and
> lost some work.
>
> I have had other times that I lost control of Eric due to some unfortunate
> search and replace action. I would like to suggest that this is a bug,
> not just deserts for my own stupidity.
>
> Infinite search-replace loops can be avoided by
>
> 1) not permitting a repetitive search-replace that can match the empty
> string at any position;
> 2) advancing the repeated search point to after any replacement text; and
> 3) not permitting the wrap-around to wrap past the place the operation was
> started at.
>
> If this problem is due to some faulty external component e.g. QScintilla,
> perhaps eric could perhaps offer a way to asynchronously abort the
> operation.

If you are using version 3.5, this will be fixed in 3.5.1. If you are using a 
snapshot, that shouldn't happen anymore. Please let me know, which version  
you are using.

Detlev
-- 
Detlev Offenbach
detlev@die-offenbachs.de

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic