Skip to content

Commit b07ca99

Browse files
committed
Continue to show flycheck lighter if possible
1 parent e757685 commit b07ca99

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

jcs-modeline.el

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,13 @@
306306
"Return flycheck information for the given error type STATE."
307307
(let* ((counts (flycheck-count-errors flycheck-current-errors))
308308
(errorp (flycheck-has-current-errors-p state))
309-
(err (or (cdr (assq state counts)) "?"))
309+
(err (or (cdr (assq state counts)) "0"))
310310
(running (eq 'running flycheck-last-status-change)))
311-
(if (or errorp running) (format "%s" err))))
311+
(format "%s" (if running "?" err))))
312312

313313
(defun jcs-modeline--render-flycheck ()
314314
"Render for flycheck."
315-
(when (and (bound-and-true-p flycheck-mode)
316-
(or flycheck-current-errors
317-
(eq 'running flycheck-last-status-change)))
315+
(when (bound-and-true-p flycheck-mode)
318316
(concat
319317
(cl-loop for state in '((error . "#FB4933")
320318
(warning . "#FABD2F")

0 commit comments

Comments
 (0)