branch: scratch/editorconfig-cc
commit 372e7c3ead45f46325bc8c18ebf2ec3d63de0ddd
Author: Hong Xu <h...@topbug.net>
Commit: Stefan Monnier <monn...@iro.umontreal.ca>

    Only set fill-column if the given integer is positive.
---
 editorconfig.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/editorconfig.el b/editorconfig.el
index 8d701f9e83..1e9bc9e641 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -236,7 +236,8 @@ yet.")
 
 (defun editorconfig-set-line-length (length)
   "Set the max line length (fill-column) to LENGTH."
-  (when (editorconfig-string-integer-p length)
+  (when (and (editorconfig-string-integer-p length)
+          (> (string-to-number length) 0))
     (set-fill-column (string-to-number length))))
 
 (defun editorconfig-call-editorconfig-exec ()

Reply via email to