Bug 499492

Summary: unexpected behavior when select / copy a long text which is displayed in multi-line
Product: [Applications] konsole Reporter: wangsitan <wangsitan>
Component: copy-pasteAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description wangsitan 2025-02-04 08:01:27 UTC
SUMMARY

There is a long text without newline character inside of it. It's shown in multi-line due to the width of the Konsole window. When I triple-click on the text, only the whole displayed line (not the complete text) is selected. When I drag mouse cursor to select the whole "multi-line" text and copy it, there are newline characters at the end of each displayed line in the clipboard.


STEPS TO REPRODUCE

1. Output a long text (longer then thw width of the Konsole window), by such as echo "xxxxxxxxx..." .
2. Triple-click on the text.
3. Drag mouse cursor to select the whole text and copy it, then paste to a text editor.


OBSERVED RESULT

1. Triple-click select the displayed line only.
2. The copied / pasted text is not one-line text.


EXPECTED RESULT

1. Triple-click should select the whole text (till a real newline character).
2. Newline characters should not be added at the end of each displayed line. Or there should be options to configure these behaviors.


SOFTWARE/OS VERSIONS

Windows: Windows 10 (20H2 19042.508)
Konsole: 25.03.70 (konsole-master-3822-windows-cl-msvc2022-x86_64.7z)