Save window selection after updating the index

This commit is contained in:
Abdo Haji-Ali 2020-03-29 22:00:14 +01:00
parent c335914caa
commit 33694814fc
1 changed files with 3 additions and 2 deletions

View File

@ -655,8 +655,9 @@ process."
(zerop (plist-get info :updated)))
(mu4e~request-contacts-maybe))
(when (and (buffer-live-p mainbuf) (get-buffer-window mainbuf))
(select-window (get-buffer-window mainbuf))
(mu4e~main-view 'refresh)))))
(save-window-excursion
(select-window (get-buffer-window mainbuf))
(mu4e~main-view 'refresh))))))
((plist-get info :message)
(mu4e-index-message "%s" (plist-get info :message))))))