]> git.eshelyaron.com Git - emacs.git/commitdiff
* xdisp.c (mouse_face_from_buffer_pos): Fix detection of
authorChong Yidong <cyd@stupidchicken.com>
Sat, 27 Jun 2009 03:50:23 +0000 (03:50 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 27 Jun 2009 03:50:23 +0000 (03:50 +0000)
truncation glyphs (Bug#3686).

src/ChangeLog
src/xdisp.c

index 2572c3ea13e7b4b7b3acaa9951527f78a4ab995a..65cd4fa62b6b5fd572a528a710ec77134ef42ceb 100644 (file)
@@ -1,10 +1,15 @@
+2009-06-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
+       truncation glyphs (Bug#3686).
+
 2009-06-27  Glenn Morris  <rgm@gnu.org>
 
        * m/pmax.h: Restore file, with only netbsd portions.
 
 2009-06-26  David Reitter <david.reitter@gmail.com>
 
-       * nsterm.m (keydown): avoid infinite loop
+       * nsterm.m (keydown): Avoid infinite loop.
 
 2009-06-26  Peter Jolly  <peter@jollys.org>  (tiny change)
 
index 68f2a4fc7b09fda1c183b3a33787909dd8c703f7..5fc634b20ea00f5595880f7f399d523c5b600011 100644 (file)
@@ -22991,7 +22991,10 @@ mouse_face_from_buffer_pos (Lisp_Object window,
 
       /* 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 @@ mouse_face_from_buffer_pos (Lisp_Object window,
 
   /* 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