Use max', not min'

`min' puts a lower bound on LIMIT, but we want an upper bound, so `max' must be
used.
This commit is contained in:
Nikita Bloshchanevich 2020-11-29 19:55:41 +01:00
parent 49f4461daa
commit 345327ae8b

View file

@ -105,7 +105,7 @@ employed so that flycheck still does *some* helpful linting.")
(str (symbol-value sym))
(str (prin1-to-string str))
(limit (- (frame-width) (length ret) (length truncated) 1)))
(format (format "%%0.%ds%%s" (min limit 0))
(format (format "%%0.%ds%%s" (max limit 0))
(propertize str 'face 'warning)
(if (< (length str) limit) "" truncated))))))