Merge pull request #1328 from pitti/fix-whitespace-deletion

mu4e: restrict deleting trailing whitespace to region
This commit is contained in:
Dirk-Jan C. Binnema
2020-02-09 00:24:32 +02:00
committed by GitHub

View File

@ -397,9 +397,11 @@ set, this simply executes `fill-paragraph'."
(if mu4e-compose-format-flowed
(let ((fill-column (point-max))
(use-hard-newlines nil)); rfill "across" hard newlines
(delete-trailing-whitespace)
(when (use-region-p)
(delete-trailing-whitespace (region-beginning) (region-end)))
(fill-paragraph nil region))
(delete-trailing-whitespace)
(when (use-region-p)
(delete-trailing-whitespace (region-beginning) (region-end)))
(fill-paragraph nil region)))
(defun mu4e-toggle-use-hard-newlines ()