Merge pull request #144 from netromdk/mc-matches

Show number of multiple cursors correctly
This commit is contained in:
Vincent Zhang 2019-03-10 22:18:00 +07:00 committed by GitHub
commit a496a3d84e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1052,7 +1052,7 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
"Show the number of multiple cursors." "Show the number of multiple cursors."
(cl-destructuring-bind (count . face) (cl-destructuring-bind (count . face)
(cond ((bound-and-true-p multiple-cursors-mode) (cond ((bound-and-true-p multiple-cursors-mode)
(cons (eval (cadadr mc/mode-line)) (cons (mc/num-cursors)
(if (doom-modeline--active) (if (doom-modeline--active)
'doom-modeline-eldoc-bar 'doom-modeline-eldoc-bar
'mode-line-inactive))) 'mode-line-inactive)))