-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix RTL inverse horizontal arrow key movement #10334
Conversation
Since it seems like a problem in Scintilla code you better submit your fix directly to Scintilla project. |
@mere-human, referring to this RTL issue ticket in the scintilla project https://sourceforge.net/p/scintilla/bugs/1590/, it seems like they've already fixed and closed it. Nevertheless, Ill still try to replicate the problem in that project. If I do encounter it, ill apply this fix and open a PR there. And @Yaron10, yeah sure. Ill take a quick look at it. |
It has been fixed in v4.1.0, according Scintilla author. However, the Scintilla used by Notepad++ is v4.4.6.
Yes, it sounds good - thank you. I'm gonna keep this PR opened until the situation of this issue is more clear. |
Do you build your Notepad++ or you use the script for it?
If Scintilla were maintained by Notepad++, it would be a better solution. |
I'm using the following code in
NOTE:
|
After checking the source code, I realized that Notepad++ R2L feature was done before the similar feature implemented in Scintilla - R2L feature in Notepad++ has been implemented by using Windows system's R2L capacity, but not using the bi_directional text implementation Scintilla SCI_SETBIDIRECTIONAL. That's why Neil (Scintilla author) has confirmed that has been fixed, but the fix is not in Notepad++. The wired thing is, I have tested in the latest release of Notepad3, there is also the same caret inverse moving bug in RTL mode, but I didn't check Notepad3's code for this part. I have also tried Scintilla native SCI_SETBIDIRECTIONAL, without success. So I took the solution of @Yaron10 and improved it as the PR #10963, which for me it's a better solution, comparing to the one of modifying Scintilla component which is not maintained by this project. |
ref: #10334 (comment) Fix #8553, fix #7678, fix #9730, close #10963
Fix #8553, Fix #7678 and Fix #9730
Before the fix:
After the fix: