Bug 499737

Summary: Offset text after paste
Product: [Applications] konsole Reporter: Justin Zobel <justin>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Justin Zobel 2025-02-10 05:45:52 UTC
SUMMARY
This is hard to describe but, I'll do my best. I'm using Konsole from git master and bash. I have a custom PS1 for bash and a large .bashrc file which I'll share if desired after I strip it of any personal info.

Sometimes when I paste some text, the start of where text input is changes.

For example, I pasted a string of text into my terminal just now and it happened.

I pasted clusha<snip the rest of the text> text in the konsole with Ctrl Shift V. However, the terminal then shows clusclusha<snip the rest of the text>. If I press the home key to go to the start of the line, I see the cursor under the second 'c' character. And if I type 'abc' it now shows clusabcclusha<snip>. That 'abc' entry is now at the start of my text, even though it shows as part way in.

This issue has been happening for a long time, but I moved to fish for a while and didn't have the issue. I recently moved back to bash to test something and ran into it again and figured it was time to report it.

STEPS TO REPRODUCE
As above

OBSERVED RESULT
Text jumbled

EXPECTED RESULT
Normal text placement

Operating System: Solus 4.7
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.9-312.current (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 4750U with Radeon Graphics
Memory: 29.1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 20Y1001SAU
System Version: ThinkPad P14s Gen 1