https://bugs.kde.org/show_bug.cgi?id=427061
Bug ID: 427061 Summary: External Tools Replace Current Document: Undo appends extra line Product: kate Version: 20.08.1 Platform: openSUSE RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: groszdaniel...@gmail.com Target Milestone: --- SUMMARY If an external tool is set to replace the current document with the output of the command, an extra empty line is appended to the original document if you undo using the tool. STEPS TO REPRODUCE 1. In Tools / External Tools / Configure, click Add / Add Tool... 2. Set Output to Replace Current Document. 3. Leave Reload Current Document unchecked. You may add %{Document:Text} as the input of the tool, or you may set Save to Current Document, and have the tool read the file by adding "%{Document:NativeFilePath}" as a parameter; it doesn't seem to matter. Complete the form to add the tool. 4. Invoke the external tool from the Tools / External Tools menu. 5. Undo. OBSERVED RESULT You get back the document as it was before invoking the tool, except with an extra empty line added at the end. EXPECTED RESULT You get back the document as it was. SOFTWARE/OS VERSIONS openSUSE Tumbleweed 20200925 KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 Qt Version: 5.15.1 -- You are receiving this mail because: You are watching all bug changes.