Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prettier-js.el
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ a `before-save-hook'."
(with-current-buffer patchbuf
(erase-buffer))
(if (zerop (apply 'call-process
prettier-js-command bufferfile (list (list :file outputfile) errorfile)
nil (append prettier-js-args width-args (list "--stdin" "--stdin-filepath" buffer-file-name))))
prettier-js-command nil (list (list :file outputfile) errorfile)
nil (append prettier-js-args (list bufferfile) width-args (list "--stdin" "--stdin-filepath" buffer-file-name))))
(progn
(call-process-region (point-min) (point-max) "diff" nil patchbuf nil "-n" "--strip-trailing-cr" "-"
outputfile)
Expand Down