diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index 368f5fcb..e27ec97a 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -1103,7 +1103,7 @@ the query history stack." (mu4e-context-label))))) ;; when the buffer is already visible, select it; otherwise, ;; switch to it. - (unless (get-buffer-window buf 'visible) + (unless (get-buffer-window buf 0) (switch-to-buffer buf)) (run-hook-with-args 'mu4e-headers-search-hook expr) (mu4e~proc-find