Bug 448627 - Clipboard removes parts of copied text after edits
Summary: Clipboard removes parts of copied text after edits
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard (show other bugs)
Version: 5.23.90
Platform: Other Linux
: VHI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-01-16 22:52 UTC by Gabriel
Modified: 2022-01-22 08:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.24


Attachments
Screen recording of the issue (367.49 KB, video/mp4)
2022-01-16 22:52 UTC, Gabriel
Details

Note You need to log in before you can comment on or make changes to this bug.
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