]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/character.c (lisp_string_width): Fix a typo in recent change.
authorEli Zaretskii <eliz@gnu.org>
Thu, 27 May 2021 13:51:56 +0000 (16:51 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 27 May 2021 13:51:56 +0000 (16:51 +0300)
src/character.c

index b9a5d913e04211e7d01f2db39dcbbadae948b645..e72fdc0c4bd5447054812d7f7c0de5e9a19f6960 100644 (file)
@@ -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));
                }
            }