From 04012b85d633df5542e6536bf33e5b8c0499be7d Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 3 Mar 2004 23:53:43 +0000 Subject: [PATCH] (direct_output_forward_char): Give up if we need bidi processing or buffer's orientation is right-to-left. --- src/dispnew.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/dispnew.c b/src/dispnew.c index 63435c54d82..02694deb131 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -3676,8 +3676,12 @@ direct_output_forward_char (n) if (!display_completed || cursor_in_echo_area) return 0; - /* Give up if the buffer's direction is reversed. */ - if (!NILP (XBUFFER (w->buffer)->direction_reversed)) + /* Give up if we need bidi display. */ + if (!NILP (XBUFFER (w->buffer)->enable_bidi_display)) + return 0; + + /* Give up if the buffer's orientation is reversed. */ + if (!NILP (XBUFFER (w->buffer)->orientation_reversed)) return 0; /* Can't use direct output if highlighting a region. */ -- 2.39.5