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
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)?
Still an issue on Kate 20.11.70.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/342
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