mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-20 16:11:07 -05:00
Fix obsolete (when|if)-let messages in Emacs 26
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
(defvar +doom-modeline-current-window (frame-selected-window))
|
||||
(defun +doom-modeline|set-selected-window (&rest _)
|
||||
"Sets `+doom-modeline-current-window' appropriately"
|
||||
(when-let (win (frame-selected-window))
|
||||
(when-let* ((win (frame-selected-window)))
|
||||
(unless (minibuffer-window-active-p win)
|
||||
(setq +doom-modeline-current-window win))))
|
||||
|
||||
|
Reference in New Issue
Block a user