mirror of https://github.com/djcb/mu.git
mu4e-view: use with-selected-window in mv--in-headers-context
Fixed #1394
This commit is contained in:
parent
ae10d3a3f8
commit
c23dad7058
|
@ -158,7 +158,7 @@ Then, display the results."
|
|||
(with-current-buffer buffer
|
||||
;; make sure to select the window, or jumping won't
|
||||
;; be reflected.
|
||||
(select-window (get-buffer-window))
|
||||
(with-selected-window (get-buffer-window)
|
||||
(if (or (mu4e~headers-goto-docid docid)
|
||||
;; TODO: Is this the best way to find another
|
||||
;; relevant docid for a view buffer?
|
||||
|
@ -173,7 +173,7 @@ Then, display the results."
|
|||
(with-current-buffer buffer
|
||||
(mu4e-message-field (mu4e-message-at-point) :docid))))
|
||||
,@body
|
||||
(mu4e-error "Cannot find message in headers buffer"))))))
|
||||
(mu4e-error "Cannot find message in headers buffer")))))))
|
||||
|
||||
(defun mu4e-view-headers-next (&optional n)
|
||||
"Move point to the next message header.
|
||||
|
|
Loading…
Reference in New Issue