Fix small issue with rubocopfmt.el

This commit is contained in:
2017-01-14 10:29:13 +00:00
parent 96bbd2147e
commit 0106518adb

View File

@@ -37,6 +37,11 @@
(unwind-protect
(save-restriction
(widen)
;; Trailing whitespace on empty lines can cause incorrect correction
;; behavior by Rubocop, so we clean up whitespace before handing
;; things off to rubocopfmt.
(whitespace-cleanup)
(with-current-buffer patchbuf (erase-buffer))
(message "Calling rubocopfmt: %s %s"
rubocopfmt-command rubocopfmt-args)