mirror of https://github.com/djcb/mu.git
Fix window restoration when C-g'ing on reply.
* mu4e/mu4e-compose.el (mu4e~compose-handler): Save and restore window config.
This commit is contained in:
parent
d3b20704dc
commit
fa2427e6f9
|
@ -484,10 +484,12 @@ tempfile)."
|
||||||
(run-hooks 'mu4e-compose-pre-hook)
|
(run-hooks 'mu4e-compose-pre-hook)
|
||||||
|
|
||||||
;; this opens (or re-opens) a messages with all the basic headers set.
|
;; this opens (or re-opens) a messages with all the basic headers set.
|
||||||
(condition-case nil
|
(let ((winconf (current-window-configuration)))
|
||||||
(mu4e-draft-open compose-type original-msg)
|
(condition-case nil
|
||||||
(quit (kill-buffer) (mu4e-message "Operation aborted")
|
(mu4e-draft-open compose-type original-msg)
|
||||||
(return-from mu4e~compose-handler)))
|
(quit (set-window-configuration winconf)
|
||||||
|
(mu4e-message "Operation aborted")
|
||||||
|
(return-from mu4e~compose-handler))))
|
||||||
;; insert mail-header-separator, which is needed by message mode to separate
|
;; insert mail-header-separator, which is needed by message mode to separate
|
||||||
;; headers and body. will be removed before saving to disk
|
;; headers and body. will be removed before saving to disk
|
||||||
(mu4e~draft-insert-mail-header-separator)
|
(mu4e~draft-insert-mail-header-separator)
|
||||||
|
|
Loading…
Reference in New Issue