Bug 164410 - "replace all" with empty string does not replace all
Summary: "replace all" with empty string does not replace all
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Other
: NOR major
Target Milestone: ---
Assignee: Sebastian Pipping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 23:05 UTC by Francesco Riosa
Modified: 2008-09-23 21:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2008-06-18 23:05:46 UTC
Version:            (using Devel)
Compiler:          gcc version 4.3.1 (Gentoo 4.3.1 p1.0) 
OS:                Other

find/replace all dialog, even using "Plain Text" kind of search does leave some (half) "find" occurences if string to find are adiacent.

This maybe expected behaviour with regex but is un-common and tedious with plain text replace.

example 1:
replace "find" with empty string

--before-start
findfindfindfindfindfindfindfindfindfindfindfind
findfindfindfindfindfindfindfindfindfindfindfind
--before-end

--after-start
findfindfindfindfindfind
findfindfindfindfindfind
--after-end

example 2:
replace "f" with empty string
--before-start
f
ff
fff
ffff
fffff
ffffff
--before-end

--after-start

f
f
ff
ff
fff
--after-end
Comment 1 FiNeX 2008-06-18 23:25:16 UTC
Confirmed. I half replace the text
Comment 2 Francesco Riosa 2008-08-11 16:24:32 UTC
ping, at revision 845277 it's still here
Comment 3 Sebastian Pipping 2008-09-23 21:03:56 UTC
Maybe I'm too impatient but I have the impression "BUG: 164410" in the commit log will not close this bug anymore. So I'm closing manually. Diff here:

http://websvn.kde.org/trunk/KDE/kdelibs/kate/utils/katesearchbar.cpp?r1=853096&r2=864017