pretty print output in the debug overlay
This commit is contained in:
1 parent
27088fab28
commit
9db419a3f8
1 file changed
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user