From 65d06d01f6f0a088e7507e4d35a5aa56ab0dd79e Mon Sep 17 00:00:00 2001 From: Max Cahill Date: Mon, 5 Jul 2021 16:20:03 +1000 Subject: [PATCH] fixed pretty default config getting modified by parameters --- pretty.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pretty.lua b/pretty.lua index 66ac821..f36a139 100644 --- a/pretty.lua +++ b/pretty.lua @@ -59,7 +59,7 @@ function pretty._process(input, config, processing_state) end --pull out config - config = table.overlay(pretty.default_config, config or {}) + config = table.overlay({}, pretty.default_config, config or {}) local per_line = config.per_line local depth = config.depth