From e00faf6cd33c93235d14b9b97d107de76b9c29d5 Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Mon, 12 Apr 2021 23:51:48 +0200 Subject: [PATCH] mu4e-headers: Set the point in the correct frame after search Fixes https://github.com/djcb/mu/issues/1977 --- mu4e/mu4e-headers.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index 3b6c1018..712d0cc8 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -840,7 +840,7 @@ after the end of the search results." (mu4e-headers-goto-message-id mu4e~headers-msgid-target) (let* ((pos (mu4e-headers-goto-message-id mu4e~headers-msgid-target))) (when pos - (set-window-point (get-buffer-window) pos))))) + (set-window-point (get-buffer-window nil t) pos))))) (when (and mu4e~headers-view-target (mu4e-message-at-point 'noerror)) ;; view the message at point when there is one. (mu4e-headers-view-message))