mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-04 22:40:25 +02:00
* boot-9.scm (inherit-print-state): If NEW-PORT contains a
print-state, throw it away.
This commit is contained in:
parent
4851dc578d
commit
1c11d900c0
1 changed files with 2 additions and 1 deletions
|
@ -2841,5 +2841,6 @@
|
||||||
|
|
||||||
(define (inherit-print-state old-port new-port)
|
(define (inherit-print-state old-port new-port)
|
||||||
(if (pair? old-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))
|
new-port))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue