]> code.delx.au - gnu-emacs/blobdiff - lisp/eshell/esh-mode.el
Fix Eshell display when RTL characters are involved
[gnu-emacs] / lisp / eshell / esh-mode.el
index 074b94cc75d7668a59dda815b6edf3e9f10a0de4..104841d999c24db9207d20b042cef2bd2d921b14 100644 (file)
@@ -380,6 +380,11 @@ and the hook `eshell-exit-hook'."
     (make-local-variable 'eshell-modules-list)
     (setq eshell-modules-list modules-list))
 
+  ;; This is to avoid making the paragraph base direction
+  ;; right-to-left if the first word just happens to start with a
+  ;; strong R2L character.
+  (setq bidi-paragraph-direction 'left-to-right)
+
   ;; load extension modules into memory.  This will cause any global
   ;; variables they define to be visible, since some of the core
   ;; modules sometimes take advantage of their functionality if used.