Merge pull request #1978 from Chris00/master

mu4e-headers: Set the point in the correct frame after search
This commit is contained in:
Dirk-Jan C. Binnema
2021-04-13 09:33:02 +03:00
committed by GitHub

View File

@ -840,7 +840,7 @@ after the end of the search results."
(mu4e-headers-goto-message-id mu4e~headers-msgid-target) (mu4e-headers-goto-message-id mu4e~headers-msgid-target)
(let* ((pos (mu4e-headers-goto-message-id mu4e~headers-msgid-target))) (let* ((pos (mu4e-headers-goto-message-id mu4e~headers-msgid-target)))
(when pos (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)) (when (and mu4e~headers-view-target (mu4e-message-at-point 'noerror))
;; view the message at point when there is one. ;; view the message at point when there is one.
(mu4e-headers-view-message)) (mu4e-headers-view-message))