Bug 496896

Summary: Overlap in KRunner input box
Product: [Plasma] krunner Reporter: jackyzy823
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: alexander.lohnau, natalie_clarius, qydwhotmail
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.2.5
Sentry Crash Report:
Attachments: overlap

Description jackyzy823 2024-12-01 15:13:40 UTC
Created attachment 176264 [details]
overlap

SUMMARY


STEPS TO REPRODUCE
1. Alt +F2 to open KRunner and enter a long command which longer than the input box.  For example `echo some_random_every_long_but_different_text_1234567891234567891223456789`
2. Alt +F2 again , the previous command is shown and in  all selected state.
3. Press "End" to go to the end of the command

OBSERVED RESULT
Obseve the overlap happens

EXPECTED RESULT
No overlap

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2


ADDITIONAL INFORMATION

If current input box is empty, enter a char like "e" and press tab. Then press "Home" and "End" , to move the cursor, the overlap doesn't happen.
Comment 1 jackyzy823 2024-12-01 16:28:19 UTC
I think adding a line `fadedTextCompletion.text = ""` after https://invent.kde.org/plasma/plasma-workspace/-/blob/master/krunner/qml/RunCommand.qml#L68 could solve the problem.
Comment 2 Bug Janitor Service 2024-12-02 02:52:03 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4971