From 845e0319d3cce53424e2c804290c16014df53709 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 7 Jul 2018 12:40:03 +0800 Subject: [PATCH] Fix #7: text scale is only shown for positive values. --- doom-modeline.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 8804ea4..5f8393b 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -682,9 +682,12 @@ 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))) + (format + (if (> text-scale-mode-amount 0) + " (%+d)" + " (%-d)") + text-scale-mode-amount))) 'face (if (doom-modeline--active) 'doom-modeline-buffer-major-mode)))