Bug 496896 - Overlap in KRunner input box
Summary: Overlap in KRunner input box
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-01 15:13 UTC by jackyzy823
Modified: 2024-12-03 07:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.5
Sentry Crash Report:


Attachments
overlap (96.56 KB, image/png)
2024-12-01 15:13 UTC, jackyzy823
Details

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