Bug 383442

Summary: vimode clipboard copy/paste line is not correct
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Amos Bird <amosbird>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jpmbatrina01
Priority: NOR    
Version: 5.73.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Amos Bird 2017-08-13 02:32:01 UTC
copy this line :            for (;i<v.size()-1;i++) {

and paste it at the same position generates : 

            for (;i<v.s            for (;i<v.size()-1;i++) {
ize()-1;i++) {

while in vim it pastes to a new line
Comment 1 Jan Paul Batrina 2020-08-16 12:03:43 UTC
Seems to be fixed on 5.73.0 (I don't know on which specific version it was fixed)
Comment 2 Jan Paul Batrina 2020-08-16 14:09:24 UTC
Upon further inspection, this seems to work for the normal delete line and yank line (dd, yy), but the behavior you describe appears when using (numbered) registers.
Comment 3 Jan Paul Batrina 2022-01-30 09:50:11 UTC
Pasting the given line in normal (non-vi) mode and in vimode results to the same output in the lates dev version of kate.

Please feel free to reopen if you still experience the bug, preferrably with another example.