From: Eli Zaretskii Date: Thu, 9 Jun 2022 16:40:25 +0000 (+0300) Subject: ; * src/window.c (window_body_unit_from_symbol): Fix Lisp EQ. X-Git-Tag: emacs-29.0.90~1910^2~121 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=559c276942e4b2d47244802cfb31fb79e61f9a7f;p=emacs.git ; * src/window.c (window_body_unit_from_symbol): Fix Lisp EQ. --- 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