From 24b2597183fd8daf85fc2a12bfc487f95bce1962 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 4 Apr 2022 20:03:05 -0700 Subject: [PATCH] ls-fonts: improve output for custom_block_glyphs Print the correct text fragment, and clarify why wezterm is drawing a glyph. refs: #1817 --- wezterm-gui/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wezterm-gui/src/main.rs b/wezterm-gui/src/main.rs index 5426acc98..d8798e46d 100644 --- a/wezterm-gui/src/main.rs +++ b/wezterm-gui/src/main.rs @@ -749,8 +749,8 @@ pub fn run_ls_fonts(config: config::ConfigHandle, cmd: &LsFontsCommand) -> anyho if config.custom_block_glyphs { if let Some(block) = customglyph::BlockKey::from_str(&text) { println!( - "{:2} {:4} {:12} drawn by wezterm: {:?}", - info.cluster, cluster.text, escaped, block + "{:2} {:4} {:12} drawn by wezterm because custom_block_glyphs=true: {:?}", + info.cluster, text, escaped, block ); continue; }