Mercurial > emacs
comparison src/ChangeLog @ 111107:f3721a6253a8
Fix mouse highlight in bidi-reordered continued lines.
xdisp.c (row_containing_pos): Don't return too early when CHARPOS is in a
bidi-reordered continued line. Return immediately when the first
hit is found in a line that is not continued, or when an exact
match for CHARPOS is found.
(mouse_face_from_buffer_pos): Rewrite to not assume that
START_CHARPOS is always in mouse_face_beg_row. If necessary, swap
mouse_face_beg_row and mouse_face_end_row so that the former is
always above the latter or identical to it.
Continued lines that begin or end outside of the visible region
still don't work.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 02 Oct 2010 17:05:20 +0200 |
parents | f8d92bb352b9 |
children | d35341cade2a |
comparison
equal
deleted
inserted
replaced
111106:f8d92bb352b9 | 111107:f3721a6253a8 |
---|---|
3 * xdisp.c (coords_in_mouse_face_p): Fix the conditions for when | 3 * xdisp.c (coords_in_mouse_face_p): Fix the conditions for when |
4 mouse_face_beg_row and mouse_face_end_row are equal. | 4 mouse_face_beg_row and mouse_face_end_row are equal. |
5 (note_mouse_highlight): Clear mouse highlight when mouse pointer | 5 (note_mouse_highlight): Clear mouse highlight when mouse pointer |
6 is in a R2L row on the stretch glyph that stands for no text | 6 is in a R2L row on the stretch glyph that stands for no text |
7 beyond the line end. | 7 beyond the line end. |
8 (row_containing_pos): Don't return too early when CHARPOS is in a | |
9 bidi-reordered continued line. Return immediately when the first | |
10 hit is found in a line that is not continued, or when an exact | |
11 match for CHARPOS is found. | |
12 (mouse_face_from_buffer_pos): Rewrite to not assume that | |
13 START_CHARPOS is always in mouse_face_beg_row. If necessary, swap | |
14 mouse_face_beg_row and mouse_face_end_row so that the former is | |
15 always above the latter or identical to it. | |
8 | 16 |
9 2010-08-28 Eli Zaretskii <eliz@gnu.org> | 17 2010-08-28 Eli Zaretskii <eliz@gnu.org> |
10 | 18 |
11 * xdisp.c (mouse_face_from_buffer_pos): Fix code using bug#1220 as | 19 * xdisp.c (mouse_face_from_buffer_pos): Fix code using bug#1220 as |
12 test case. Implement highlight for R2L rows. Fix the case of | 20 test case. Implement highlight for R2L rows. Fix the case of |