]> Repositorios git - scryer-prolog.git/commitdiff
pop both pending redirections in format_bar_separator_op when max depth exceeded...
authorMark <[email protected]>
Sun, 23 Jul 2023 21:02:27 +0000 (15:02 -0600)
committerMark <[email protected]>
Sun, 23 Jul 2023 21:02:27 +0000 (15:02 -0600)
src/heap_print.rs

index 832c4561ca29b23abb4c99a4a5dba3c9c3197d9f..d1d87587bb55bf15d2942dbf79d1178fe22bf9cf 100644 (file)
@@ -703,6 +703,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
     fn format_bar_separator_op(&mut self, mut max_depth: usize, name: Atom, spec: OpDesc) {
         if self.check_max_depth(&mut max_depth) {
             self.iter.pop_stack();
+            self.iter.pop_stack();
 
             let ellipsis_atom = atom!("...");