Use tag for debugger state.

This commit is contained in:
Stephen Chung
2022-05-03 21:55:01 +08:00
parent 4f74d2f96a
commit 516f5a82a0
4 changed files with 21 additions and 41 deletions

View File

@@ -60,12 +60,7 @@ fn print_current_source(
lines: &[String],
window: (usize, usize),
) {
let current_source = &mut *context
.global_runtime_state_mut()
.debugger
.state_mut()
.write_lock::<ImmutableString>()
.unwrap();
let current_source = &mut *context.tag_mut().write_lock::<ImmutableString>().unwrap();
let src = source.unwrap_or("");
if src != current_source {
println!(