Bug 448627

Summary: Clipboard removes parts of copied text after edits
Product: [Plasma] plasmashell Reporter: Gabriel <gabriel>
Component: ClipboardAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: auxsvr, nate, qydwhotmail
Priority: VHI Keywords: regression
Version: 5.23.90   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=431673
Latest Commit: Version Fixed In: 5.24
Attachments: Screen recording of the issue

Description Gabriel 2022-01-16 22:52:05 UTC
Created attachment 145563 [details]
Screen recording of the issue

SUMMARY
If a copied text exceeds a certain length and is edited in the clipboard, that text will be elided with an added ellipsis (…) at the end. This leads to it being impossible to edit longer copied texts without losing most of it in the process.

STEPS TO REPRODUCE
1. Copy long text
2. Open clipboard and click "Edit contents"
3. Edit and save
4. Paste the edited text

OBSERVED RESULT
Most of the text is missing

EXPECTED RESULT
All text remains, with whatever edit has been made

SOFTWARE
OS: KDE neon Testing Edition
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Comment 1 Bug Janitor Service 2022-01-18 14:34:48 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1374
Comment 2 Fushan Wen 2022-01-18 15:36:31 UTC
Git commit 8f06a8a528bc85906b0811125d297e2619502c80 by Fushan Wen.
Committed on 18/01/2022 at 15:09.
Pushed by fusionfuture into branch 'master'.

applets/clipboard: Use FullTextRole in EditPage

The role can provide the untruncated text when the clipboard item being edited has
a very long text.

M  +1    -1    applets/clipboard/contents/ui/ClipboardPage.qml

https://invent.kde.org/plasma/plasma-workspace/commit/8f06a8a528bc85906b0811125d297e2619502c80
Comment 3 Fushan Wen 2022-01-18 15:38:33 UTC
Git commit bb694dfb8cbcdbc4c2c641f89a8acc5e8883c9c1 by Fushan Wen.
Committed on 18/01/2022 at 15:38.
Pushed by fusionfuture into branch 'Plasma/5.24'.

applets/clipboard: Use FullTextRole in EditPage

The role can provide the untruncated text when the clipboard item being edited has
a very long text.


(cherry picked from commit 8f06a8a528bc85906b0811125d297e2619502c80)

M  +1    -1    applets/clipboard/contents/ui/ClipboardPage.qml

https://invent.kde.org/plasma/plasma-workspace/commit/bb694dfb8cbcdbc4c2c641f89a8acc5e8883c9c1