mirror of
https://github.com/correl/doom-modeline.git
synced 2025-02-25 11:05:43 +00:00
Use when-let* for safer in symbol overlay panel.
This commit is contained in:
parent
e7de8eef92
commit
b0750259a3
1 changed files with 6 additions and 6 deletions
|
@ -1090,7 +1090,7 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
|
||||||
(when (and (bound-and-true-p symbol-overlay-keywords-alist)
|
(when (and (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
|
(when-let* ((keyword (symbol-overlay-assoc
|
||||||
(ignore-errors (symbol-overlay-get-symbol))))
|
(ignore-errors (symbol-overlay-get-symbol))))
|
||||||
(symbol (car keyword))
|
(symbol (car keyword))
|
||||||
(before (symbol-overlay-get-list symbol 'car))
|
(before (symbol-overlay-get-list symbol 'car))
|
||||||
|
|
Loading…
Add table
Reference in a new issue