Bug 364707

Summary: Wrong cursor positioning in multiline RTL/bidi text (word-wrap on)
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Safa Alfulaij <safa1996alfulaij>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 5.23.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Safa Alfulaij 2016-06-24 13:11:34 UTC
If the RTL text continued to the next visual line, the positioning of the cursor is offset to the left, and that's only if the visual line is not the last line. The amount depend on the font somehow.

Visual line: each segment of the breaked line when word-wrap is on.

Text used:
"""
خشب
خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب خشب 
"""

Screenshots showing the problem in the first and second line segments of the word-wraped line:  http://imgur.com/a/RwpNu (First one-word line and last segment are right)

Reproducible: Always
Comment 1 Safa Alfulaij 2016-08-28 07:46:06 UTC
A later bug has better explanation: https://bugs.kde.org/show_bug.cgi?id=367722
Comment 2 Safa Alfulaij 2016-08-31 20:10:49 UTC

*** This bug has been marked as a duplicate of bug 367722 ***