ls-fonts: improve output for custom_block_glyphs

Print the correct text fragment, and clarify why wezterm
is drawing a glyph.

refs: #1817
This commit is contained in:
Wez Furlong committed 2022-04-04 20:03:05 -07:00
1 parent 327984d1d1
commit 24b2597183
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}