Ignore user errors in symbol-overlay sub-segment.

This commit is contained in:
Vincent Zhang 2019-03-14 00:15:24 +07:00
parent 92f99bbd96
commit 34cc69a8df
2 changed files with 3 additions and 2 deletions

View file

@ -1032,7 +1032,8 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
(bound-and-true-p symbol-overlay-keywords-alist) (bound-and-true-p symbol-overlay-keywords-alist)
(not (bound-and-true-p symbol-overlay-temp-symbol)) (not (bound-and-true-p symbol-overlay-temp-symbol))
(not (bound-and-true-p iedit-mode))) (not (bound-and-true-p iedit-mode)))
(let* ((keyword (symbol-overlay-assoc (symbol-overlay-get-symbol))) (let* ((keyword (symbol-overlay-assoc
(ignore-errors (symbol-overlay-get-symbol))))
(symbol (car keyword)) (symbol (car keyword))
(before (symbol-overlay-get-list -1 symbol)) (before (symbol-overlay-get-list -1 symbol))
(after (symbol-overlay-get-list 1 symbol)) (after (symbol-overlay-get-list 1 symbol))

View file

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