aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-06-09 19:40:25 +0300
committerEli Zaretskii2022-06-09 19:40:25 +0300
commit559c276942e4b2d47244802cfb31fb79e61f9a7f (patch)
treeb12faf9e35418575338909973e4702919794c1d2 /src
parent4ac18cc34a7b1e28f2c3e60acc542830c9bc0090 (diff)
downloademacs-559c276942e4b2d47244802cfb31fb79e61f9a7f.tar.gz
emacs-559c276942e4b2d47244802cfb31fb79e61f9a7f.zip
; * src/window.c (window_body_unit_from_symbol): Fix Lisp EQ.
Diffstat (limited to 'src')
-rw-r--r--src/window.c8
1 files 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
1018window_body_unit_from_symbol (Lisp_Object unit) 1018window_body_unit_from_symbol (Lisp_Object unit)
1019{ 1019{
1020 return 1020 return
1021 (unit == Qremap ? WINDOW_BODY_IN_REMAPPED_CHARS 1021 EQ (unit, Qremap)
1022 : NILP (unit) ? WINDOW_BODY_IN_CANONICAL_CHARS 1022 ? WINDOW_BODY_IN_REMAPPED_CHARS
1023 : WINDOW_BODY_IN_PIXELS); 1023 : (NILP (unit)
1024 ? WINDOW_BODY_IN_CANONICAL_CHARS
1025 : WINDOW_BODY_IN_PIXELS);
1024} 1026}
1025 1027
1026/* Return the number of lines/pixels of W's body. Don't count any mode 1028/* Return the number of lines/pixels of W's body. Don't count any mode