From 0d0e6143e75b1f1fb5c366c2181b6f8196abec0e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 27 May 2021 16:51:56 +0300 Subject: [PATCH] * src/character.c (lisp_string_width): Fix a typo in recent change. --- src/character.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } -- 2.39.5