]> code.delx.au - gnu-emacs/commit
Avoid crashes due to unreasonably large or small text scaling
authorEli Zaretskii <eliz@gnu.org>
Sun, 10 Apr 2016 16:50:39 +0000 (19:50 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 10 Apr 2016 16:50:39 +0000 (19:50 +0300)
commit0e7bcec103073eceecc2621c19e4d290b2d97e8d
treec740216697d3c7f066b1dbe3b8a32ef2f4b32a72
parent85f257c9bc5b89043b2d7019e6763e552f4c89e7
Avoid crashes due to unreasonably large or small text scaling

* lisp/face-remap.el (text-scale-min-amount)
(text-scale-max-amount): New functions.
(text-scale-set, text-scale-increase): Use them to limit the text
scaling to a reasonable range of values.  (Bug#23259)
lisp/face-remap.el