comparison src/fringe.c @ 66622:cf3d316b4bc0

(update_window_fringes): Undo 2005-10-27 change. Instead, rotate the bottom angle bitmap 180 degrees to indicate that the bottom row does not end in a newline.
author Kim F. Storm <storm@cua.dk>
date Tue, 01 Nov 2005 22:32:24 +0000
parents 430485ba3d28
children 3bd95f4f2941 693e794b57bf 7beb78bc1f8e
comparison
equal deleted inserted replaced
66621:7b05c7538f54 66622:cf3d316b4bc0
858 done_top = 1; 858 done_top = 1;
859 } 859 }
860 860
861 if (!done_bot) 861 if (!done_bot)
862 { 862 {
863 if (row->ends_at_zv_p 863 if (MATRIX_ROW_END_CHARPOS (row) >= BUF_ZV (XBUFFER (w->buffer))
864 && !MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P (w, row)) 864 && !MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P (w, row))
865 row->indicate_eob_p = !NILP (boundary_bot), done_bot = 1; 865 row->indicate_eob_p = !NILP (boundary_bot), done_bot = 1;
866 else if (y + row->height >= yb) 866 else if (y + row->height >= yb)
867 row->indicate_bottom_line_p = !NILP (arrow_bot), done_bot = 1; 867 row->indicate_bottom_line_p = !NILP (arrow_bot), done_bot = 1;
868 } 868 }
904 } 904 }
905 else if (row->truncated_on_left_p) 905 else if (row->truncated_on_left_p)
906 left = LEFT_TRUNCATION_BITMAP; 906 left = LEFT_TRUNCATION_BITMAP;
907 else if (row->indicate_bob_p && EQ (boundary_top, Qleft)) 907 else if (row->indicate_bob_p && EQ (boundary_top, Qleft))
908 left = ((row->indicate_eob_p && EQ (boundary_bot, Qleft)) 908 left = ((row->indicate_eob_p && EQ (boundary_bot, Qleft))
909 ? LEFT_BRACKET_BITMAP : TOP_LEFT_ANGLE_BITMAP); 909 ? (row->ends_at_zv_p
910 ? TOP_RIGHT_ANGLE_BITMAP : LEFT_BRACKET_BITMAP)
911 : TOP_LEFT_ANGLE_BITMAP);
910 else if (row->indicate_eob_p && EQ (boundary_bot, Qleft)) 912 else if (row->indicate_eob_p && EQ (boundary_bot, Qleft))
911 left = BOTTOM_LEFT_ANGLE_BITMAP; 913 left = (row->ends_at_zv_p
914 ? TOP_RIGHT_ANGLE_BITMAP : BOTTOM_LEFT_ANGLE_BITMAP);
912 else if (MATRIX_ROW_CONTINUATION_LINE_P (row)) 915 else if (MATRIX_ROW_CONTINUATION_LINE_P (row))
913 left = CONTINUATION_LINE_BITMAP; 916 left = CONTINUATION_LINE_BITMAP;
914 else if (row->indicate_empty_line_p && EQ (empty_pos, Qleft)) 917 else if (row->indicate_empty_line_p && EQ (empty_pos, Qleft))
915 left = ZV_LINE_BITMAP; 918 left = ZV_LINE_BITMAP;
916 else if (row->indicate_top_line_p && EQ (arrow_top, Qleft)) 919 else if (row->indicate_top_line_p && EQ (arrow_top, Qleft))
930 } 933 }
931 else if (row->truncated_on_right_p) 934 else if (row->truncated_on_right_p)
932 right = RIGHT_TRUNCATION_BITMAP; 935 right = RIGHT_TRUNCATION_BITMAP;
933 else if (row->indicate_bob_p && EQ (boundary_top, Qright)) 936 else if (row->indicate_bob_p && EQ (boundary_top, Qright))
934 right = ((row->indicate_eob_p && EQ (boundary_bot, Qright)) 937 right = ((row->indicate_eob_p && EQ (boundary_bot, Qright))
935 ? RIGHT_BRACKET_BITMAP : TOP_RIGHT_ANGLE_BITMAP); 938 ? (row->ends_at_zv_p
939 ? TOP_LEFT_ANGLE_BITMAP : RIGHT_BRACKET_BITMAP)
940 : TOP_RIGHT_ANGLE_BITMAP);
936 else if (row->indicate_eob_p && EQ (boundary_bot, Qright)) 941 else if (row->indicate_eob_p && EQ (boundary_bot, Qright))
937 right = BOTTOM_RIGHT_ANGLE_BITMAP; 942 right = (row->ends_at_zv_p
943 ? TOP_LEFT_ANGLE_BITMAP : BOTTOM_RIGHT_ANGLE_BITMAP);
938 else if (row->continued_p) 944 else if (row->continued_p)
939 right = CONTINUED_LINE_BITMAP; 945 right = CONTINUED_LINE_BITMAP;
940 else if (row->indicate_top_line_p && EQ (arrow_top, Qright)) 946 else if (row->indicate_top_line_p && EQ (arrow_top, Qright))
941 right = UP_ARROW_BITMAP; 947 right = UP_ARROW_BITMAP;
942 else if (row->indicate_bottom_line_p && EQ (arrow_bot, Qright)) 948 else if (row->indicate_bottom_line_p && EQ (arrow_bot, Qright))