Summary: | Replacing selected text with a space just cancels the selection | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | resplin <richard-oss> |
Component: | composer | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kdebugs, montel |
Priority: | NOR | ||
Version: | 4.13.0 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.13.2 | |
Sentry Crash Report: |
Description
resplin
2014-05-10 04:54:57 UTC
Someone on #kde on Freenode replicated the issue with KDE 4.13.0 on OpenSuSE 13.1. For them, the space was being inserted after the selection instead of before. It appears that the space is inserted on the side of the selection which is the cursor position. Drag right to left, the space is before. Drag left to right, the space is inserted after. Double-click to select, and the space is inserted after. Regardless, the space should replace the selection, so it is clearly a bug. Fixed in 4.13.1 I'm running 4.13.1 on Kubuntu 14.04 (About dialog: KMail Version 4.13.1 unter KDE 4.13.1) and sadly the bug is not fixed. The behaviour if SPACE is pressed is as expected if the line is quoted (which seems to be what your if statement checks), but it's still wrong if a line is not quoted. In this case, an ENTER or SPACE does not replace the selected text, but simply adds the newline or space character in front of or after the selected text. Mh, can someone re-open this bug, or should I add a new one for KDE 4.13.1? Also Bug 334612 looks like a duplicate and also is not fixed in KDE 4.13.1, so maybe it should be tagged / linked accordingly, or also be reopened. Additional information: If the selection spans multiple lines, some quoted and some not, the behaviour if ENTER or SPACE is pressed does not depend on the selected area but on the row the cursor is positioned in. If if (parts of) three lines are selected and the cursor is positioned in a quoted line, pressing ENTER or SPACE will replace the selected text by a newline or space character, as expected. If if (parts of) three lines are selected and the cursor is positioned in a not-quoted line, pressing ENTER or SPACE will simply add a newline or space character in front of or after the selection, contrary to the behaviour of every other GUI text editor I know. I upgraded Fedora to KDE 4.13.1 from apt.kde-redhat.org/unstable. This bug is still clearly present in KMail. I would like to change the status to REOPENED, but I don't see how to do that, so I changed it back to UNCONFIRMED. After using KDE 4.13.1 a while, I figured out that it was fixed in some scenarios, but not others. After using KDE 4.13.2 for a few minutes, I cannot reproduce this bug. Resolving as fixed. Thank you! |