mu4e: fix action to show thread for single-window mode

When in single-window mode and invoking `mu4e-action-show-thread` from
the view buffer, stay in the headers buffer rather than going back to
the view buffer.
This commit is contained in:
Eric Danan 2018-07-12 11:37:19 +02:00 committed by djcb
parent aa70bf1920
commit 6fd6d839d7
1 changed files with 2 additions and 1 deletions

View File

@ -362,7 +362,8 @@ display the message."
(mu4e-headers-search
(format "msgid:%s" msgid)
nil nil nil
msgid (eq major-mode 'mu4e-view-mode))))))
msgid (and (eq major-mode 'mu4e-view-mode)
(not (eq mu4e-split-view 'single-window))))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;