pretty print output in the debug overlay

This commit is contained in:
Wez Furlong committed 2022-03-18 07:34:41 -07:00
1 parent 27088fab28
commit 9db419a3f8
1 file changed
+1 -1
+1 -1
View File
@@ -143,7 +143,7 @@ pub fn show_debug_overlay(mut term: TermWizTerminal, gui_win: GuiWin) -> anyhow:
let chunk = host.lua.load(&expr);
match smol::block_on(chunk.eval_async::<Value>()) {
Ok(result) => {
let text = format!("{:?}", ValueWrapper(result));
let text = format!("{:#?}", ValueWrapper(result));
term.render(&[Change::Text(format!("{}\r\n", text.replace("\n", "\r\n")))])?;
}
Err(err) => {