From 27b31c96cbc1036cea01451a98f759af496ec23d Mon Sep 17 00:00:00 2001 From: Nirmal Patel Date: Sun, 3 Apr 2022 13:21:23 -0400 Subject: [PATCH] Add true or false checkbox in health output table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hx --health output table's second and third columns were not showing symbols like ✔ or ✘ to indicate whether LSP or DAP binaries were found. This change adds these symbols to improve accessibility. Fixes #1894 Signed-off-by: Nirmal Patel --- helix-term/src/health.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/health.rs b/helix-term/src/health.rs index 7f582cbf5afb..bd74f4787c2c 100644 --- a/helix-term/src/health.rs +++ b/helix-term/src/health.rs @@ -134,8 +134,8 @@ pub fn languages_all() -> std::io::Result<()> { let check_binary = |cmd: Option| match cmd { Some(cmd) => match which::which(&cmd) { - Ok(_) => column(&cmd, Color::Green), - Err(_) => column(&cmd, Color::Red), + Ok(_) => column(&format!("✔ {}", cmd), Color::Green), + Err(_) => column(&format!("✘ {}", cmd), Color::Red), }, None => column("None", Color::Yellow), };