Skip to content

Commit

Permalink
Use correct print-width argument (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove authored and vjeux committed Mar 15, 2017
1 parent 36a1d12 commit 2b93bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editors/emacs/prettier-js.el
Expand Up @@ -186,9 +186,9 @@ function."
(width-args
(cond
((equal prettier-width-mode 'window)
(list "--width" (number-to-string (window-body-width))))
(list "--print-width" (number-to-string (window-body-width))))
((equal prettier-width-mode 'fill)
(list "--width" (number-to-string fill-column)))
(list "--print-width" (number-to-string fill-column)))
(t
'()))))
(unwind-protect
Expand Down

0 comments on commit 2b93bf4

Please sign in to comment.