From 983ee9164d7e5b6b7e4fae14fd4300148f51b8d2 Mon Sep 17 00:00:00 2001 From: Guy Repta <50716988+gtrepta@users.noreply.github.com> Date: Tue, 19 Sep 2023 12:45:37 -0500 Subject: [PATCH] KPrint.unparseInternal: (fix) Use the colorize parameter --- kernel/src/main/java/org/kframework/unparser/KPrint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/main/java/org/kframework/unparser/KPrint.java b/kernel/src/main/java/org/kframework/unparser/KPrint.java index 67a2893a465..ee9882e9f76 100644 --- a/kernel/src/main/java/org/kframework/unparser/KPrint.java +++ b/kernel/src/main/java/org/kframework/unparser/KPrint.java @@ -196,7 +196,7 @@ private Term disambiguateForUnparse(Module mod, Term t) { private String unparseInternal(Module mod, K input, ColorSetting colorize) { ExpandMacros expandMacros = ExpandMacros.forNonSentences(mod, files, kompileOptions, true); return Formatter.format( - new AddBrackets(mod).addBrackets((ProductionReference) disambiguateForUnparse(mod, KOREToTreeNodes.apply(KOREToTreeNodes.up(mod, expandMacros.expand(input)), mod))), options.color(tty.stdout, files.getEnv())); + new AddBrackets(mod).addBrackets((ProductionReference) disambiguateForUnparse(mod, KOREToTreeNodes.apply(KOREToTreeNodes.up(mod, expandMacros.expand(input)), mod))), colorize); } public K abstractTerm(Module mod, K term) {