]> git.eshelyaron.com Git - emacs.git/commit
A better fix for 'string-width'
authorEli Zaretskii <eliz@gnu.org>
Thu, 27 May 2021 09:24:29 +0000 (12:24 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 27 May 2021 09:24:29 +0000 (12:24 +0300)
commitc82afdcc88442fcfb5ee076aef13dd9721a98192
tree737d635fa4567f4f6b322ee4658ec6c538b7b988
parent7f11dea66298c2c9aeccab2b542ee8e73346f09f
A better fix for 'string-width'

* src/character.c (lisp_string_width): Compute the width when
automatic compositions can happen more accurately, by using the
pixel widths of the grapheme clusters, divided by the default
face's font width.  Disregard the current state of
'auto-composition-mode', for consistency with 'current-column' .
src/character.c