# HG changeset patch # User Eli Zaretskii # Date 1273310989 -10800 # Node ID cda2e3e030afb511597286098ef4b2419f16f1e0 # Parent 3bda5d5b903817ab6b5c5250edd886ed180ecea0 Fix fringe truncation bitmaps in R2L lines. fringe.c (update_window_fringes): Set up truncation bitmaps for R2L lines. diff -r 3bda5d5b9038 -r cda2e3e030af src/ChangeLog --- a/src/ChangeLog Fri May 07 19:13:50 2010 -0700 +++ b/src/ChangeLog Sat May 08 12:29:49 2010 +0300 @@ -1,3 +1,8 @@ +2010-05-08 Eli Zaretskii + + * fringe.c (update_window_fringes): Set up truncation bitmaps for + R2L lines. + 2010-05-08 Glenn Morris * Makefile.in (THIS_IS_MAKEFILE): Remove, unused. diff -r 3bda5d5b9038 -r cda2e3e030af src/fringe.c --- a/src/fringe.c Fri May 07 19:13:50 2010 -0700 +++ b/src/fringe.c Sat May 08 12:29:49 2010 +0300 @@ -1082,7 +1082,8 @@ left = row->left_user_fringe_bitmap; left_face_id = row->left_user_fringe_face_id; } - else if (row->truncated_on_left_p) + else if ((!row->reversed_p && row->truncated_on_left_p) + || (row->reversed_p && row->truncated_on_right_p)) left = LEFT_FRINGE(0, Qtruncation, 0); else if (row->indicate_bob_p && EQ (boundary_top, Qleft)) left = ((row->indicate_eob_p && EQ (boundary_bot, Qleft)) @@ -1110,7 +1111,8 @@ right = row->right_user_fringe_bitmap; right_face_id = row->right_user_fringe_face_id; } - else if (row->truncated_on_right_p) + else if ((!row->reversed_p && row->truncated_on_right_p) + || (row->reversed_p && row->truncated_on_left_p)) right = RIGHT_FRINGE (0, Qtruncation, 0); else if (row->indicate_bob_p && EQ (boundary_top, Qright)) right = ((row->indicate_eob_p && EQ (boundary_bot, Qright))