From dc57152514f708d46159aa8760c723beec42457d Mon Sep 17 00:00:00 2001 From: Morten Kristensen Date: Sun, 10 Mar 2019 13:08:20 +0100 Subject: [PATCH] Show number of multiple cursors correctly Before this change nothing was shown in the "matches" section of the modeline. --- doom-modeline-segments.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index c854d97..03fcdf2 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1052,7 +1052,7 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with "Show the number of multiple cursors." (cl-destructuring-bind (count . face) (cond ((bound-and-true-p multiple-cursors-mode) - (cons (eval (cadadr mc/mode-line)) + (cons (mc/num-cursors) (if (doom-modeline--active) 'mode-line-inactive 'doom-modeline-eldoc-bar)))