Bug 458236

Summary: "Replace all" in Regex Mode replaces only one of the marked lines
Product: [Applications] kate Reporter: thomas krause <th_k>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: waqar.17a
Priority: NOR    
Version First Reported In: 21.12.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description thomas krause 2022-08-24 08:31:22 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
file:
https://bugs.kde.org/....
some text
https://bugs.kde.org/....
some text
https://bugs.kde.org/...
some text
https://portugalforum.org/

STEPS TO REPRODUCE
1. crtl r from https.*\n (all lines are marked) replace with : nothing
2. many lines are markes and selecting replace all (Alle ersetzen) replaces only one line
3. repeating "replace all" replaces the next line... like pressing "replace" alone.

OBSERVED RESULT 
replace all replaces only one off the marked lines.
repeating replace all only the next marked line is replaced.
Search and replace from the extern module (able to replace in all files) works as expected, there selecting "actual file" is now my workaround. 
(if lines are for example like https://bugs.kde.org/.../text.txt
the regex: "https:.*\.txt\n" all lines are marked, it's the same as ".*\n" -> replace all replaces only one line
the external replace module has no problems

hope I named the english buttons correctly 
                german                 english
button:  "Ersetzen"        -> "replace"
button   "Alle ersetzen" -> "replace all"


EXPECTED RESULT
replace all should replace all marked lines (as in earlier versions)

SOFTWARE/OS VERSIONS
Betriebssystem: openSUSE Leap 15.4
KDE-Plasma-Version: 5.24.4
KDE-Frameworks-Version: 5.90.0
Qt-Version: 5.15.2
Kernel-Version: 5.14.21-150400.24.18-default (64-bit)

Grafik-Plattform: X11
Prozessoren: 12 × AMD Ryzen 5 2600 Six-Core Processor
Speicher: 15,5 GiB Arbeitsspeicher
Grafikprozessor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Comment 1 Waqar Ahmed 2022-08-29 07:23:51 UTC

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