Commit 0c16bb5a authored by Alexander Gramiak's avatar Alexander Gramiak

* lisp/frame.el (display-planes): Use logb over truncate + log

Suggested by Basil L. Contovounesios:
parent b6840540
Pipeline #1189 failed with stage
in 49 minutes and 20 seconds
......@@ -2093,7 +2093,7 @@ If DISPLAY is omitted or nil, it defaults to the selected frame's display."
((eq frame-type 'pc)
(truncate (log (length (tty-color-alist)) 2))))))
(logb (length (tty-color-alist)))))))
(declare-function x-display-color-cells "xfns.c" (&optional terminal))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment