From 2b0f9ea1df4b60078bd68be70f23c48532ac4e7a Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 14 Mar 2019 00:19:42 +0700 Subject: [PATCH] Refactor doom-modeline--symbol-overlay. --- doom-modeline-segments.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index ca3b3a4..b54650f 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -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))