From 559c276942e4b2d47244802cfb31fb79e61f9a7f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 9 Jun 2022 19:40:25 +0300 Subject: [PATCH] ; * src/window.c (window_body_unit_from_symbol): Fix Lisp EQ. --- src/window.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/window.c b/src/window.c index e5666ce38e2..ac8408a9a97 100644 --- a/src/window.c +++ b/src/window.c @@ -1018,9 +1018,11 @@ static enum window_body_unit window_body_unit_from_symbol (Lisp_Object unit) { return - (unit == Qremap ? WINDOW_BODY_IN_REMAPPED_CHARS - : NILP (unit) ? WINDOW_BODY_IN_CANONICAL_CHARS - : WINDOW_BODY_IN_PIXELS); + EQ (unit, Qremap) + ? WINDOW_BODY_IN_REMAPPED_CHARS + : (NILP (unit) + ? WINDOW_BODY_IN_CANONICAL_CHARS + : WINDOW_BODY_IN_PIXELS); } /* Return the number of lines/pixels of W's body. Don't count any mode -- 2.39.2