anilk3000:
--------------------------------------------------------------------------------
Hi All, 
I stumbled on an issue with search and replace, which is causing infinite loop.

what i did was replace a "word" with "\nword" i.e. new line and same word.
expected was that all the occurrence of the word would be moved to next line
instead this caused pspad to stuck in infinite loop.

Please suggest if someone have any Work Around for this.

Steps to reproduce:
1. insert text "Hello world"
2. Go to search and replace. turn on the regular expression check-box.
3. search for "world" replace with "\nworld"
4. Expected out put is 
"Hello
world"

5. Actual is infinite loop.
--------------------------------------------------------------------------------

Hi,
I can confirm this buggy behaviour; there are some long standing problems with
handling of newlines in search and replace, as the editor component actually
works linewise. Some redesign of this feature is announced for some future
version.
As for a current workaround, you can place the cursor at the end of the text and
check the search direction "(o) Backwards" in the search dialog (using the same
regexp pattern as above), it should work fine.

hth,
   vbr

-- 
<http://forum.pspad.com/read.php?2,65464,65465>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem