From: Eli Zaretskii Date: Tue, 23 Aug 2011 07:01:25 +0000 (+0300) Subject: Fix pos-visible-in-window-p for zero-column composed character. X-Git-Tag: emacs-pretest-24.0.90~104^2~152^2~70^2~15^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1a2e6670cf53a76bfd134c8453f81a2de8c6ea5c;p=emacs.git Fix pos-visible-in-window-p for zero-column composed character. src/xdisp.c (x_produce_glyphs): Set it->nglyphs to 1. Fixes pixel coordinates reported by pos-visible-in-window-p for a composed character in column zero. --- diff --git a/src/ChangeLog b/src/ChangeLog index a1a826d625f..ffb8dd76366 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2011-08-23 Eli Zaretskii + + * xdisp.c (x_produce_glyphs): Set it->nglyphs to 1. Fixes pixel + coordinates reported by pos-visible-in-window-p for a composed + character in column zero. + 2011-08-23 Stefan Monnier * cmds.c (Fself_insert_command): Mention post-self-insert-hook. diff --git a/src/xdisp.c b/src/xdisp.c index 1878327480f..9b2b0da4317 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -24064,6 +24064,8 @@ x_produce_glyphs (struct it *it) Lisp_Object gstring; struct font_metrics metrics; + it->nglyphs = 1; + gstring = composition_gstring_from_id (it->cmp_it.id); it->pixel_width = composition_gstring_width (gstring, it->cmp_it.from, it->cmp_it.to,