-
Notifications
You must be signed in to change notification settings - Fork 293
Description
#Issue Type
- Enhancement request
Emacs version: GNU Emacs 25.2.1
Operating System: Arch Linux with the latest updates
Evil version: 1.2.12
Evil installation type: Manual
Graphical/Terminal: Graphical
Tested in a clean environment: Yes
Reproduction steps
- Start Emacs
- Type some Arabic (Farsi, Hebrew or Urdu) text so that it appears from the right to the left, for example:
هذا نص عربي للتجربة
- Try moving (using right and left arrow keys, or 'h' and 'l' keys) while in normal mode.
Expected behavior
The movement keys should move the cursor to the left when pressing the left arrow key, and to the right when pressing the right arrow key, while on a RTL text.
Actual behavior
The keys move the cursor to opposite of the direction they are supposed to move the cursor in while in a RTL text.
Further notes
Please note that I have only faced this problem when trying to move by characters, other movements that depend on text objects (i.e. pressing 'e' moves correctly to the end of the word on the left side of the cursor) behave correctly.
I hope that there is a quick workaround that makes evil recognise different language environments and reverse its behaviour accordingly.
Thanks and Best Regards