From 59f78dc9667a89fc2a2ca71840af51f777af4243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Ha=C3=ABck?= <52320542+Descanonge@users.noreply.github.com> Date: Wed, 17 Nov 2021 18:09:05 +0100 Subject: [PATCH] fix(notmuch): incorrect type used for window --- modules/email/notmuch/autoload.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/email/notmuch/autoload.el b/modules/email/notmuch/autoload.el index 8a6b31abd..b8fc93fc3 100644 --- a/modules/email/notmuch/autoload.el +++ b/modules/email/notmuch/autoload.el @@ -8,9 +8,9 @@ (progn (when (featurep! :ui workspaces) (+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)))) - (select-window (get-buffer-window buf)) + (select-window win) (funcall +notmuch-home-function)) (when (featurep! :ui workspaces) (+workspace/display)))