diff --git a/prettier-js.el b/prettier-js.el index 08d90b8..576d88d 100644 --- a/prettier-js.el +++ b/prettier-js.el @@ -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)