mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Fix small issue with rubocopfmt.el
This commit is contained in:
5
vendor/rubocopfmt.el
vendored
5
vendor/rubocopfmt.el
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user