https://bugs.kde.org/show_bug.cgi?id=451798
Bug ID: 451798 Summary: Replace all with escape sequences broken Product: kate Version: 21.12.3 Platform: Debian unstable OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: danielrosc...@phoenitydawn.de Target Milestone: --- SUMMARY Recently "Replace All" in the replace dialog broke in certain cases when using the "Escape sequence" mode and only replaces a subset of strings to replace. Clicking "Replace all" multiple times will continue replacing strings until the desired result is eventually reached. STEPS TO REPRODUCE 1. Open an new document in Kate. 2. Add the following content to the document: 1\n 2\n 3\n 4\n 3. Open the search replace dialog (CTRL + R) 4. Ensure the search/replace mode is set to "Escape sequences" 5. Enter "\\n" into the "Find" input field and "\n" into the "Replace" input field 6. Click "Replace All" OBSERVED RESULT A toast stating "2 replacements made" and the following content in the document now: 1 2 3\n 4\n EXPECTED RESULT A toast stating "4 replacements made" and the following content in the document now: 1 2 3 4 SOFTWARE/OS VERSIONS KDE Frameworks Version: 5.90.0 Qt Version: 5.15.2 -- You are receiving this mail because: You are watching all bug changes.