fix(notmuch): incorrect type used for window

This commit is contained in:
Clément Haëck 2021-11-17 18:09:05 +01:00 committed by Henrik Lissner
parent 2b1cb2620a
commit 59f78dc966

View file

@ -8,9 +8,9 @@
(progn (progn
(when (featurep! :ui workspaces) (when (featurep! :ui workspaces)
(+workspace-switch "*MAIL*" t)) (+workspace-switch "*MAIL*" t))
(if-let* ((buf (cl-find-if (lambda (it) (string-match-p "^\\*notmuch" (buffer-name (window-buffer it)))) (if-let* ((win (cl-find-if (lambda (it) (string-match-p "^\\*notmuch" (buffer-name (window-buffer it))))
(doom-visible-windows)))) (doom-visible-windows))))
(select-window (get-buffer-window buf)) (select-window win)
(funcall +notmuch-home-function)) (funcall +notmuch-home-function))
(when (featurep! :ui workspaces) (when (featurep! :ui workspaces)
(+workspace/display))) (+workspace/display)))