mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 07:43:26 +00:00
Nimpretty Fix negative indent breaks code (#13580)
This commit is contained in:
@@ -126,6 +126,7 @@
|
||||
|
||||
### Tool changes
|
||||
|
||||
- Fix Nimpretty must not accept negative indentation argument because breaks file.
|
||||
|
||||
|
||||
### Compiler changes
|
||||
|
||||
@@ -44,8 +44,8 @@ proc writeVersion() =
|
||||
|
||||
type
|
||||
PrettyOptions = object
|
||||
indWidth: int
|
||||
maxLineLen: int
|
||||
indWidth: Natural
|
||||
maxLineLen: Positive
|
||||
|
||||
proc prettyPrint(infile, outfile: string, opt: PrettyOptions) =
|
||||
var conf = newConfigRef()
|
||||
|
||||
Reference in New Issue
Block a user