Refactor doom-modeline--symbol-overlay.

This commit is contained in:
Vincent Zhang 2019-03-14 00:19:42 +07:00
parent 34cc69a8df
commit 2b0f9ea1df

View file

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