mu4e: widen buffer after save

Otherwise, undo won't work. Fixes issue #1047.
This commit is contained in:
djcb 2017-03-18 10:07:12 +02:00
parent 8f1f88ce0a
commit 7d895dbd69
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ appear on disk."
(mu4e~draft-insert-mail-header-separator)
;; hide some headers again
(mu4e~compose-hide-headers)
(widen)
(set-buffer-modified-p nil)
(mu4e-message "Saved (%d lines)" (count-lines (point-min) (point-max)))
;; update the file on disk -- ie., without the separator