Bug 503306

Summary: Selection doesn't highlight the whole sentence if it contain Arabic (RTL) word first then English only.
Product: [Applications] kate Reporter: easy_lad <uneasy_latitude544>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 24.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: not highlighting the whole sentence when double clicking or selecting all of it

Description easy_lad 2025-04-24 18:51:16 UTC
Created attachment 180622 [details]
not highlighting the whole sentence when double clicking or selecting all of it

SUMMARY

Here's the text "محرك Bing". If I double click to highlight the whole sentence, it doesn't highlight all of it. However, I can copy all of it.

STEPS TO REPRODUCE
1. double click to highlight the whole sentence when it includes arabic word first then English only like provided in "SUMMARY"

OBSERVED RESULT

it doesn't highlight all of it.

EXPECTED RESULT

Highlights the whole sentence.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Comment 1 Christoph Cullmann 2025-07-20 18:01:16 UTC
Hmm, in current master either the

محرك

or

Bing

of

محرك Bing

is selected and the copy is what you see selected (like in the browser here).

I think that got fixed with

https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/815

or one of the later merge requests that are on that topic.