# HG changeset patch # User Chong Yidong # Date 1246074623 0 # Node ID c466fe42acdc7523718ab26ddb69d00226c229fb # Parent 02bc348744edb6c374621a1b416fc7ff3affa138 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of truncation glyphs (Bug#3686). diff -r 02bc348744ed -r c466fe42acdc src/ChangeLog --- a/src/ChangeLog Sat Jun 27 02:42:05 2009 +0000 +++ b/src/ChangeLog Sat Jun 27 03:50:23 2009 +0000 @@ -1,10 +1,15 @@ +2009-06-27 Chong Yidong + + * xdisp.c (mouse_face_from_buffer_pos): Fix detection of + truncation glyphs (Bug#3686). + 2009-06-27 Glenn Morris * m/pmax.h: Restore file, with only netbsd portions. 2009-06-26 David Reitter - * nsterm.m (keydown): avoid infinite loop + * nsterm.m (keydown): Avoid infinite loop. 2009-06-26 Peter Jolly (tiny change) diff -r 02bc348744ed -r c466fe42acdc src/xdisp.c --- a/src/xdisp.c Sat Jun 27 02:42:05 2009 +0000 +++ b/src/xdisp.c Sat Jun 27 03:50:23 2009 +0000 @@ -22991,7 +22991,10 @@ /* Skip truncation glyphs at the start of the glyph row. */ if (row->displays_text_p) - for (; glyph < end && INTEGERP (glyph->object); ++glyph) + for (; glyph < end + && INTEGERP (glyph->object) + && glyph->charpos < 0; + ++glyph) x += glyph->pixel_width; /* Scan the glyph row, stopping before BEFORE_STRING or @@ -23039,7 +23042,10 @@ /* Skip truncation glyphs at the start of the row. */ if (row->displays_text_p) - for (; glyph < end && INTEGERP (glyph->object); ++glyph) + for (; glyph < end + && INTEGERP (glyph->object) + && glyph->charpos < 0; + ++glyph) x += glyph->pixel_width; /* Scan the glyph row, stopping at END_CHARPOS or when we encounter