branch: elpa/spacemacs-theme
commit 16ae2301acfb9bb23b8164f0b2315f72cceb03de
Author: bmag <[email protected]>
Commit: bmag <[email protected]>

    Set line-number face unconditionally
    
    The old implementation didn't actually set the `line-number` face at
    all. Also, added missing inheritance - fixes a bug where scaling the
    text (i.e. via `scale-text-adjust`) wouldn't scale the size of current
    line number.
---
 spacemacs-common.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/spacemacs-common.el b/spacemacs-common.el
index 9b1c569e4f..ef279547f0 100644
--- a/spacemacs-common.el
+++ b/spacemacs-common.el
@@ -594,9 +594,8 @@ to 'auto, tags may not be properly aligned. "
      `(linum ((,class (:foreground ,lnum :background ,bg2 :inherit default))))
 
 ;;;;; display-line-numbers-mode (Emacs 26+)
-     (when (>= emacs-major-version 26)
-       `(line-number ((,class (:foreground ,lnum :background ,bg2))))
-       `(line-number-current-line ((,class (:foreground ,base :background 
,bg2)))))
+     `(line-number ((,class (:foreground ,lnum :background ,bg2 :inherit 
default))))
+     `(line-number-current-line ((,class (:foreground ,base :background ,bg2 
:inherit line-number))))
 
 ;;;;; linum-relative
      `(linum-relative-current-face ((,class (:foreground ,comp))))

Reply via email to