From 703d928c93d2722500d582ceb17a50fd2f6bb2fc Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 27 Jun 2018 02:43:54 +0800 Subject: [PATCH] Fix exception: /0. --- doom-modeline.el | 1 + 1 file changed, 1 insertion(+) diff --git a/doom-modeline.el b/doom-modeline.el index cd25ff5..24bfba7 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -531,6 +531,7 @@ directory, the file name, and its state (modified, read-only or non-existent)." (when doom-modeline-env-version (concat " " doom-modeline-env-version)) (and (featurep 'face-remap) + (> text-scale-mode-amount 0) (/= text-scale-mode-amount 0) (format " (%+d)" text-scale-mode-amount))) 'face (if (doom-modeline--active) 'doom-modeline-buffer-major-mode)))