branch: scratch/editorconfig-cc commit 9d1d2364313086590d0e578aab5dbaabeaf03ec9 Author: Hong Xu <h...@topbug.net> Commit: Stefan Monnier <monn...@iro.umontreal.ca>
Don't set max_line_length if not specified. --- README.md | 4 ++++ editorconfig.el | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0637e7f611..2bd07efc6c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ Alternatively, you can find the package available on [Marmalade](http://marmalade-repo.org/packages/editorconfig). +## Supported properties + +* `max_line_length` + [EditorConfig]: http://editorconfig.org [EditorConfig core]: https://github.com/editorconfig/editorconfig-core [properties]: http://editorconfig.org/#supported-properties diff --git a/editorconfig.el b/editorconfig.el index c58c639826..d7266c39e6 100644 --- a/editorconfig.el +++ b/editorconfig.el @@ -67,7 +67,8 @@ (defun edconf-set-line-length (length) "set the max line length (fill-column)" - (set-fill-column (string-to-number length))) + (if length + (set-fill-column (string-to-number length)))) (defun edconf-get-properties () )