Bug 503295 - Cursor offset when typing
Summary: Cursor offset when typing
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 25.04.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-24 15:55 UTC by Alpha-Craft
Modified: 2025-04-27 00:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alpha-Craft 2025-04-24 15:55:09 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
The cursor is sometimes offset from its actual intended position when typing.

STEPS TO REPRODUCE
1. Open Konsole
2. Start typing lowercase and uppercase letters as well as spaces
3. Eventually the cursor is offset

OBSERVED RESULT
The cursor is not at its intended position

EXPECTED RESULT
It should be at exactly its intended position

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora KDE 41
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
The font I am using is JetBrainsMono, but it also appears to be the same with other fonts as I have tried.
Comment 1 John Kizer 2025-04-24 19:16:31 UTC
Hi - does editing your Konsole profile to turn off "Word mode" - from within the Edit Profile dialog, go to the Appearance page and the Complex Text Layout tab - help in this case?

(Referencing issues like https://bugs.kde.org/show_bug.cgi?id=459398 and https://bugs.kde.org/show_bug.cgi?id=494788 )

Thanks!
Comment 2 Alpha-Craft 2025-04-26 21:44:53 UTC
(In reply to John Kizer from comment #1)
> Hi - does editing your Konsole profile to turn off "Word mode" - from within
> the Edit Profile dialog, go to the Appearance page and the Complex Text
> Layout tab - help in this case?
> 
> (Referencing issues like https://bugs.kde.org/show_bug.cgi?id=459398 and
> https://bugs.kde.org/show_bug.cgi?id=494788 )
> 
> Thanks!

Yes. Sorry that it took me this long. Disabling word mode resolves this character offset, but this should work normally with word mode. A regression?
Comment 3 John Kizer 2025-04-27 00:09:15 UTC
Thanks for confirming - this seems like it might be either a monospace font version of https://bugs.kde.org/show_bug.cgi?id=459398 , or - if that font does in fact vary its character widths slightly - another instance of https://bugs.kde.org/show_bug.cgi?id=483292 . 

Could you please capture a screenshot or screencast example of how it's rendering on your device, and attach that to this report?

And for context, word mode is disabled by default going forward in Konsole, as described here: https://invent.kde.org/utilities/konsole/-/merge_requests/1044 

Thanks!