Fix #206: Don't display overwrite state when evil-mode is enabled.

This commit is contained in:
Vincent Zhang 2019-08-07 21:03:30 +08:00
parent eb3258b503
commit 56464b146e
2 changed files with 3 additions and 2 deletions

View file

@ -1471,7 +1471,8 @@ mouse-1: Display Line and Column Mode Menu"
(defsubst doom-modeline--overwrite ()
"The current overwrite state. Requires `overwrite-mode' to be enabled."
(when (bound-and-true-p overwrite-mode)
(when (and (bound-and-true-p overwrite-mode)
(not (bound-and-true-p evil-local-mode)))
(propertize " <O> " 'face (if (doom-modeline--active)
'doom-modeline-urgent
'mode-line-inactive))))

View file

@ -4,7 +4,7 @@
;; Author: Vincent Zhang <seagle0128@gmail.com>
;; Homepage: https://github.com/seagle0128/doom-modeline
;; Version: 2.5.0
;; Version: 2.5.1
;; Package-Requires: ((emacs "25.1") (all-the-icons "1.0.0") (shrink-path "0.2.0") (dash "2.11.0"))
;; Keywords: faces mode-line