mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 11:00:45 -08:00
* xdisp.c (mouse_face_from_buffer_pos): Fix detection of
truncation glyphs (Bug#3686).
This commit is contained in:
parent
920b116e67
commit
cd9b5e16ff
2 changed files with 14 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
10
src/xdisp.c
10
src/xdisp.c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue