Bug 458236 - "Replace all" in Regex Mode replaces only one of the marked lines
Summary: "Replace all" in Regex Mode replaces only one of the marked lines
Status: RESOLVED DUPLICATE of bug 447972
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 21.12.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-24 08:31 UTC by thomas krause
Modified: 2022-08-29 07:23 UTC (History)
1 user (show)

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 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 ***