Bug 473042

Summary: In composer Delete Line deletes from cursor to end-of-line
Product: [Applications] kmail2 Reporter: Allen Winter <winter>
Component: composerAssignee: kdepim bugs <pim-bugs-null>
Status: ASSIGNED ---    
Severity: normal CC: montel
Priority: NOR    
Version First Reported In: Git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Allen Winter 2023-08-05 14:11:49 UTC
STEPS TO REPRODUCE
1.  reply to a message
2. in composer window put your cursor in the somewhere on any text line (except the first character of that line)
3. type ctrl-k (the shortcut for Delete line)

OBSERVED RESULT
the current line is deleted from the cursor position until the end of the line

EXPECTED RESULT
the entire line is deleted, regardless of where your cursor is positioned

ADDITIONAL INFORMATION
this is how Kate works and it would be nice to have consistency
from my Emacs days I do like  "delete from point to end-of-line"  but that's not the same as "Delete line"
Comment 1 Laurent Montel 2023-08-05 15:40:07 UTC
So at the moment it's more as "from my Emacs days I do like  "delete from point to end-of-line"  but that's not the same as "Delete line"" :)

Ok indeed it can be better to delete all lines

I will fix it