diff --git a/ice-9/boot-9.scm b/ice-9/boot-9.scm index 60f017cf4..c1e27ab0d 100644 --- a/ice-9/boot-9.scm +++ b/ice-9/boot-9.scm @@ -2841,5 +2841,6 @@ (define (inherit-print-state old-port new-port) (if (pair? old-port) - (cons new-port (cdr old-port)) + (cons (if (pair? new-port) (car new-port) new-port) + (cdr old-port)) new-port))