Skip to content

Commit fd5f5bb

Browse files
committed
Always clear status board
1 parent c33d848 commit fd5f5bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/sub.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ where
115115
data_tree
116116
};
117117

118+
GLOBAL_STATUS_BOARD.clear_line(0);
119+
118120
if json_output {
119121
let unit_and_tree: UnitAndTree = data_tree
120122
.into_reflection() // I really want to use std::mem::transmute here but can't.
@@ -138,7 +140,6 @@ where
138140
max_depth,
139141
};
140142

141-
GLOBAL_STATUS_BOARD.clear_line(0);
142143
print!("{}", visualizer); // visualizer already ends with "\n", println! isn't needed here.
143144
Ok(())
144145
}

0 commit comments

Comments
 (0)