From 22b99434382fba5f17dcd987c6010905fd851e66 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 22 Dec 2018 14:23:43 +0800 Subject: [PATCH] Fix: incorrect height of eldoc bar. --- doom-modeline.el | 10 +++++----- test/test-helper.el | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index cf0db07..384f28d 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -289,7 +289,7 @@ It returns a file name which can be used directly as argument of (defface doom-modeline-bar '((t (:inherit highlight))) "The face used for the left-most bar on the mode-line of an active window.") -(defface doom-modeline-eldoc-bar '((t (:inherit shadow))) +(defface doom-modeline-eldoc-bar '((t (:inherit highlight))) "The face used for the left-most bar on the mode-line when eldoc-eval is active.") @@ -439,10 +439,10 @@ If DEFAULT is non-nil, set the default mode-line for all buffers." (defun doom-modeline-eldoc (text) "Get eldoc TEXT for mode-line." - (concat (when (display-graphic-p) - (doom-modeline--make-xpm 'doom-modeline-eldoc-bar - doom-modeline-height - doom-modeline-bar-width)) + (concat (doom-modeline--make-xpm 'doom-modeline-eldoc-bar + doom-modeline-bar-width + doom-modeline-height) + " " text)) ;; Show eldoc in the mode-line with `eval-expression' diff --git a/test/test-helper.el b/test/test-helper.el index a36041e..7376ab8 100644 --- a/test/test-helper.el +++ b/test/test-helper.el @@ -30,11 +30,11 @@ ;; ;;; Code: +(require 'doom-modeline (expand-file-name "doom-modeline.el")) + (defun strip-text-properties(txt) "Strip text properties of TXT." (set-text-properties 0 (length txt) nil txt) txt) -(require 'doom-modeline (expand-file-name "doom-modeline.el")) - ;;; test-helper.el ends here