From: Eli Zaretskii Date: Thu, 27 May 2021 13:51:56 +0000 (+0300) Subject: * src/character.c (lisp_string_width): Fix a typo in recent change. X-Git-Tag: emacs-28.0.90~2309 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0d0e6143e75b1f1fb5c366c2181b6f8196abec0e;p=emacs.git * src/character.c (lisp_string_width): Fix a typo in recent change. --- diff --git a/src/character.c b/src/character.c index b9a5d913e04..e72fdc0c4bd 100644 --- a/src/character.c +++ b/src/character.c @@ -395,7 +395,7 @@ lisp_string_width (Lisp_Object string, ptrdiff_t from, ptrdiff_t to, { Lisp_Object font_info = Ffont_info (default_font, Qnil); font_width = XFIXNUM (AREF (font_info, 11)); - if (font_info <= 0) + if (font_width <= 0) font_width = XFIXNUM (AREF (font_info, 10)); } }