Bug 340366 - Cursor indicator wrongly placed when using dynamic word wrap with RTL.
Summary: Cursor indicator wrongly placed when using dynamic word wrap with RTL.
Status: RESOLVED UPSTREAM
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 3.13.2
Platform: Kubuntu Linux
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-26 11:16 UTC by ZD
Modified: 2017-12-09 11:44 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ZD 2014-10-26 11:16:30 UTC
When editing RTL text with DWW enabled, the cursor indicator is wrongly placed, one character to the right (that is, the previous character). The cursor indicator is placed at the right character if the line is short enough and at the last virtual line of the wrapped line. 

For example, if the line contains "אאאא בבבב גגגג" and the cursor is phyically placed at the first character of the second word ("אאאא |בבבב גגגג"), the cursor is wrongly drawn before the space ("אאאא| בבבב גגגג").

Reproducible: Always

Steps to Reproduce:
1. Enable dynamic word wrap.
2. Enter long Hebrew line (i.e., repeating "אאאא בבבב גגגג").
3. Move the cursor to the second word (using Crtl+left). 
4. Erase/Add some text.

Actual Results:  
Cursor is shown at the wrong place.

Expected Results:  
Cursor is shown at the right place.

This is a major regression, basicly rendering kate useless as RTL text editor.

Qt: 4.8.6
KDE Development Platform: 4.13.3
Kate: 3.13.3
Comment 1 Buovjaga 2016-06-19 14:17:57 UTC
I could not reproduce.
Please test with the latest version.

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.22.0
Qt 5.6.1
xcb wm
Comment 2 ttv200 2016-06-20 14:19:03 UTC
I test this on Kate 15.22 
all work fine
Comment 3 Sohail 2017-12-09 11:44:13 UTC
Kate Version 17.08.1 32bit Windows 7, I still have this bug.