diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 85fe768..a04f9da 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -290,10 +290,9 @@ Uses `all-the-icons-material' to fetch the icon." (when (>= emacs-major-version 26) (add-variable-watcher 'buffer-read-only - (lambda (_sym val op _where) - (when (eq op 'set) - (setq buffer-read-only val) - (doom-modeline-update-buffer-file-state-icon)))) + (lambda (_sym val _op _where) + (setq buffer-read-only val) + (doom-modeline-update-buffer-file-state-icon))) (add-variable-watcher 'doom-modeline-icon diff --git a/doom-modeline.el b/doom-modeline.el index 5b89e12..83281f6 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -4,7 +4,7 @@ ;; Author: Vincent Zhang ;; Homepage: https://github.com/seagle0128/doom-modeline -;; Version: 1.9.5 +;; Version: 1.9.6 ;; Package-Requires: ((emacs "25.1") (all-the-icons "1.0.0") (shrink-path "0.2.0") (eldoc-eval "0.1") (dash "2.11.0")) ;; Keywords: faces mode-line