syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.58k stars 4.9k forks source link

fix: Spacemacs-Modeline showing duplicated Anzu indicator #16261

Closed niontrix closed 5 months ago

niontrix commented 5 months ago

Why?:

This change addresses the need by:

Image showing the problem:

image

bcc32 commented 5 months ago

There's actually this snippet in spcemacs-evil/init-evil-anzu:

    (when (eq (spacemacs/get-mode-line-theme-name) 'spaceline)
      (setq anzu-mode-line-update-function 'spacemacs/anzu-update-mode-line
            anzu-cons-mode-line-p nil))))

Maybe it's just not working correctly? What does (spacemacs/get-mode-line-theme-name) evaluate to in your emacs?

smile13241324 commented 5 months ago

The mentioned function spacemacs-evil/init-evil-anzu is not testing against the right string, I am correcting this.