Bug 368182 - Cursor disappears when adding more spaces at the end of a LTR line
Summary: Cursor disappears when adding more spaces at the end of a LTR line
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: 16.04
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: rtl
Depends on:
Blocks:
 
Reported: 2016-09-03 10:43 UTC by Safa Alfulaij
Modified: 2022-03-22 17:52 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Safa Alfulaij 2016-09-03 10:43:10 UTC
With word-wrap on:
When you reach the end of the line, and any more word will get to the next line, and you add a space, the cursor goes to the right and disappears from the view.
Simple test: Keep adding spaces tell you reach the end of the line.
For a reason, this behaviour doesn't happen with RTL lines, where the cursor return to the end of last character before it goes off-screen.
A RTL word to test: "خشب".
As with LTR lines, just add the RTL word to force the direction RTL, and keep adding spaces.

Reproducible: Always
Comment 1 Andrew Crouthamel 2018-09-07 00:07:31 UTC
Hi from the Bugsquad!

I can confirm this with Kate 18.08. I presume you would like the LTR behavior to keep the cursor in-screen, but still allow spaces to be entered (as happens with RTL)?
Comment 2 Justin Zobel 2020-10-29 10:27:37 UTC
Still an issue on Kate 20.11.70.
Comment 3 Bug Janitor Service 2022-03-22 15:12:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/342
Comment 4 Waqar Ahmed 2022-03-22 17:52:34 UTC
Git commit dc7d5b99a7691327d0da97e17906c9bba4e35371 by Waqar Ahmed.
Committed on 22/03/2022 at 15:11.
Pushed by cullmann into branch 'master'.

Fix cursor in RTL text with dyn wrap on

Also fix the issue that the cursor is not visible in column 0.
Related: bug 385694

M  +11   -0    src/render/katerenderer.cpp

https://invent.kde.org/frameworks/ktexteditor/commit/dc7d5b99a7691327d0da97e17906c9bba4e35371