fixed pretty default config getting modified by parameters

This commit is contained in:
Max Cahill 2021-07-05 16:20:03 +10:00
parent 67019de5b5
commit 65d06d01f6

View File

@ -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