summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--nimpretty/nimpretty.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/nimpretty/nimpretty.nim b/nimpretty/nimpretty.nim
index 50d0d725f..cca4e7aa8 100644
--- a/nimpretty/nimpretty.nim
+++ b/nimpretty/nimpretty.nim
@@ -67,8 +67,7 @@ proc main =
     # `prettyPrint` could over-write it (note that the backup may happen even
     # if input is not actually over-written, when nimpretty is a noop).
     # --backup was un-documented (rely on git instead).
-  var opt: PrettyOptions
-  opt.maxLineLen = 80
+  var opt = PrettyOptions(indWidth: 0, maxLineLen: 80)
   for kind, key, val in getopt():
     case kind
     of cmdArgument: