Fix exception: /0.

This commit is contained in:
Vincent Zhang 2018-06-27 02:43:54 +08:00
parent 58e3362542
commit 703d928c93

View file

@ -531,6 +531,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
(when doom-modeline-env-version (when doom-modeline-env-version
(concat " " doom-modeline-env-version)) (concat " " doom-modeline-env-version))
(and (featurep 'face-remap) (and (featurep 'face-remap)
(> text-scale-mode-amount 0)
(/= text-scale-mode-amount 0) (/= text-scale-mode-amount 0)
(format " (%+d)" text-scale-mode-amount))) (format " (%+d)" text-scale-mode-amount)))
'face (if (doom-modeline--active) 'doom-modeline-buffer-major-mode))) 'face (if (doom-modeline--active) 'doom-modeline-buffer-major-mode)))