1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

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.
This commit is contained in:
Eli Zaretskii 2011-08-23 10:01:25 +03:00
parent 1802e44433
commit 1a2e6670cf
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-08-23 Eli Zaretskii <eliz@gnu.org>
* 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 <monnier@iro.umontreal.ca>
* cmds.c (Fself_insert_command): Mention post-self-insert-hook.

View File

@ -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,