Show number of multiple cursors correctly

Before this change nothing was shown in the "matches" section of the modeline.
This commit is contained in:
Morten Kristensen 2019-03-10 13:08:20 +01:00
parent 84a0aac09b
commit dc57152514
No known key found for this signature in database
GPG key ID: 11D836C98724507C

View file

@ -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)))