Skip to content

Commit 65b1f91

Browse files
committed
Fix line length argument processing.
1 parent 528527c commit 65b1f91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

blacken.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949

5050
(defcustom blacken-line-length nil
5151
"Line length to enforce."
52-
:type 'number)
52+
:type 'number
53+
:safe 'numberp)
5354

5455
(defun blacken-call-bin (input-buffer output-buffer error-buffer)
5556
"Call process black.
@@ -79,7 +80,7 @@ Return black process the exit code."
7980
"Build black process call arguments."
8081
(append
8182
(when blacken-line-length
82-
(list "--multi-line" (number-to-string blacken-line-length)))
83+
(list "--line-length" (number-to-string blacken-line-length)))
8384
'("-")))
8485

8586
;;;###autoload

0 commit comments

Comments
 (0)