From 9db419a3f85f41cb6533c0e0a3f646e504a9b48e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 18 Mar 2022 07:34:41 -0700 Subject: [PATCH] pretty print output in the debug overlay --- wezterm-gui/src/overlay/debug.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-gui/src/overlay/debug.rs b/wezterm-gui/src/overlay/debug.rs index 8da5d1be2..c2d9867d8 100644 --- a/wezterm-gui/src/overlay/debug.rs +++ b/wezterm-gui/src/overlay/debug.rs @@ -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::()) { 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) => {