Bug 164410

Summary: "replace all" with empty string does not replace all
Product: [Applications] kate Reporter: Francesco Riosa <vivo75+kde>
Component: generalAssignee: Sebastian Pipping <webmaster>
Status: RESOLVED FIXED    
Severity: major CC: finex
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Other   
Latest Commit: Version Fixed In:

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