mirror of
https://github.com/janet-lang/janet
synced 2025-11-25 03:34:49 +00:00
Update pretty printer to remove values
from seen table.
This commit is contained in:
@@ -518,7 +518,7 @@ static void janet_pretty_one(struct pretty *S, Janet x) {
|
||||
switch (janet_type(x)) {
|
||||
default:
|
||||
janet_description_b(S->buffer, x);
|
||||
return;
|
||||
break;
|
||||
case JANET_ARRAY:
|
||||
case JANET_TUPLE:
|
||||
{
|
||||
@@ -579,6 +579,8 @@ static void janet_pretty_one(struct pretty *S, Janet x) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* Remove from seen */
|
||||
janet_table_remove(&S->seen, x);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user