SUMMARY RegExp replace is broken when replace string contains \n STEPS TO REPRODUCE Search smbols and try to replace then with \n (newline). Please see attached video - in the video I replaced , with |- works, then with \t (tab) - works, then with \n (newline) - does not properly. OBSERVED RESULT When replace contains \n, kate replaces only so much search symbols as there are lines in the editor. EXPECTED RESULT Everything what is searched is replaced when using RegExp. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro KDE Plasma Version: 5.23.5 KDE Frameworks Version: 5.89.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION Replace is working when replace does not contain \n (newline).
Created attachment 145129 [details] RegExp replace broken
The same in 21.12.1
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/247
*** Bug 448320 has been marked as a duplicate of this bug. ***
Git commit 863f606b1fcf3b91b256d9167a00539289246188 by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 13/01/2022 at 19:28. Pushed by cullmann into branch 'master'. Find: Update working range when replacing M +2 -0 src/search/katesearchbar.cpp https://invent.kde.org/frameworks/ktexteditor/commit/863f606b1fcf3b91b256d9167a00539289246188
thanks for quick resolution.
*** Bug 449767 has been marked as a duplicate of this bug. ***
*** Bug 458236 has been marked as a duplicate of this bug. ***