Bug 55954 - not responding when replacing regexp ^* with blank (default)
Summary: not responding when replacing regexp ^* with blank (default)
Status: RESOLVED DUPLICATE of bug 55949
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-14 13:25 UTC by Jaime Torres
Modified: 2003-05-22 23:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2003-03-14 13:25:53 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.2.2 
OS:          Linux

With a newly empty text buffer in kate, I write some random text with some blank lines in the middle.
ej.

asdfadf


asfasdf
asdf

asdfasdf


Then, I try to replace these lines using the regexp ^* with blank (the default selection in the replace) and Kate never comes back. I have to kill it.

Regards.
Comment 1 Anders Lund 2003-03-17 21:59:47 UTC
Correct. We should prevent the infinite searching, but we don't yet provide 
search/replace spanning line breaks. 
Comment 2 Anders Lund 2003-03-17 22:07:24 UTC
Allthough the correct regexp to match a empty line would be "^\s*$" 
Comment 3 Christoph Cullmann 2003-03-25 23:17:05 UTC
infinite loop solved, but lines still will stay 
Comment 4 T Phillips 2003-05-08 04:58:07 UTC
I was going to report a related problem: Searching for $ and replacing with some
text (to append some text to the end of each line) also causes an infinite loop.
Will this problem also be fixed by your fix?
Comment 5 Anders Lund 2003-05-08 09:25:30 UTC
Subject: Re:  not responding when replacing regexp ^* with blank (default)

On Thursday 08 May 2003 04:58, T Phillips wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=55954
>
>
>
>
> ------- Additional Comments From t.phillips@murdoch.edu.au  2003-05-08
> 04:58 ------- I was going to report a related problem: Searching for $ and
> replacing with some text (to append some text to the end of each line) also
> causes an infinite loop. Will this problem also be fixed by your fix?

Partly: It works if you are no using the prompt.
A workaround: search  for "(.)$" and replace with "\1NEW TEXT"

-anders

Comment 6 Christoph Cullmann 2003-05-22 23:39:45 UTC
no longer crashs, but is a nice wish and duplicate 

*** This bug has been marked as a duplicate of 55949 ***