Skip to content

Commit 8acdc65

Browse files
committed
fix: Avoid using white color for light theme
1 parent 69c70c6 commit 8acdc65

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

lisp/_prepare.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ for more information."
438438
(if (< elapsed eask-minimum-reported-time)
439439
(ignore-errors (eask-msg ,msg-end))
440440
(ignore-errors (eask-write ,msg-end))
441-
(eask-msg (ansi-white (format " (%.3fs)" elapsed))))))
441+
(eask-msg (format " (%.3fs)" elapsed)))))
442442
(ignore-errors (eask-write ,msg-start)) ,body
443443
(ignore-errors (eask-msg ,msg-end))))
444444

@@ -2083,7 +2083,7 @@ Arguments FNC and ARGS are used for advice `:around'."
20832083
(end-of-line)
20842084
(setq max-column (max (current-column) max-column)))
20852085
(eask-msg (concat "''" (spaces-string max-column) "''"))
2086-
(eask-msg (ansi-white (buffer-string)))
2086+
(eask-msg (buffer-string))
20872087
(eask-msg (concat "''" (spaces-string max-column) "''"))))
20882088

20892089
(defun eask-help (command &optional print-or-exit-code)

lisp/test/ert.el

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,19 @@
2929
3030
Arguments FNC and ARGS are used for advice `:around'."
3131
(if eask-test-ert--message-loop (apply fnc args)
32-
(let ((eask-test-ert--message-loop t))
32+
(let ((eask-test-ert--message-loop t)
33+
(text (ignore-errors (apply #'format args))))
3334
(cond
3435
;; (message nil) is used to clear the minibuffer
3536
;; However, format requires the first argument to be a format string
3637
((null (car args))
3738
(apply fnc args))
38-
((string-match-p "^[ ]+FAILED " (apply #'format args))
39-
(eask-msg (ansi-red (apply #'format args))))
40-
((string-match-p "^[ ]+SKIPPED " (apply #'format args))
41-
(eask-msg (ansi-white (apply #'format args))))
42-
((string-match-p "^[ ]+passed " (apply #'format args))
43-
(eask-msg (ansi-green (apply #'format args))))
39+
((string-match-p "^[ ]+FAILED " text)
40+
(eask-msg (ansi-red text)))
41+
((string-match-p "^[ ]+SKIPPED " text)
42+
(eask-msg text))
43+
((string-match-p "^[ ]+passed " text)
44+
(eask-msg (ansi-green text)))
4445
(t (apply fnc args))))))
4546

4647
(advice-add 'message :around #'eask-test-ert--message)

0 commit comments

Comments
 (0)