stop writing at very long lists.
This commit is contained in:
parent
256d322f43
commit
a2a8f8e40e
@ -533,6 +533,11 @@ write_list(Term t, int direction, int depth, struct write_globs *wglb, struct re
|
||||
} else {
|
||||
do_jump = (direction > 0);
|
||||
}
|
||||
if (wglb->MaxDepth != 0 && depth > wglb->MaxDepth) {
|
||||
wrputc('|', wglb->writewch);
|
||||
putAtom(Atom3Dots, wglb->Quote_illegal, wglb->writewch);
|
||||
return;
|
||||
}
|
||||
wrputc(',', wglb->writewch);
|
||||
lastw = separator;
|
||||
direction = ndirection;
|
||||
|
Reference in New Issue
Block a user