From b341e6859d53f87106a38f2a7b35e292714073ad Mon Sep 17 00:00:00 2001 From: Chris Jefferson Date: Tue, 18 May 2021 09:46:50 +0100 Subject: [PATCH] Fix SetPrintFormattingStatus("*stdout*",X) changing oldest, not newest, output --- src/io.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/io.c b/src/io.c index 4a0d2f28e8b..190614480c8 100644 --- a/src/io.c +++ b/src/io.c @@ -1857,8 +1857,6 @@ static Obj FuncSET_PRINT_FORMATTING_STDOUT(Obj self, Obj val) TypOutputFile * output = IO()->Output; if (!output) ErrorMayQuit("SET_PRINT_FORMATTING_STDOUT called while no output is opened\n", 0, 0); - while (output->prev) - output = output->prev; output->format = (val != False); return val; }