Skip to content

Commit

Permalink
Reduce health tick width
Browse files Browse the repository at this point in the history
Use the same tick as book to reduce margin of whitespace errors.
  • Loading branch information
pickfire authored and jdrst committed Sep 13, 2022
1 parent 3722e05 commit 268b6af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helix-term/src/health.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub fn languages_all() -> std::io::Result<()> {

let check_binary = |cmd: Option<String>| match cmd {
Some(cmd) => match which::which(&cmd) {
Ok(_) => column(&format!(" {}", cmd), Color::Green),
Ok(_) => column(&format!(" {}", cmd), Color::Green),
Err(_) => column(&format!("✘ {}", cmd), Color::Red),
},
None => column("None", Color::Yellow),
Expand All @@ -162,7 +162,7 @@ pub fn languages_all() -> std::io::Result<()> {

for ts_feat in TsFeature::all() {
match load_runtime_file(&lang.language_id, ts_feat.runtime_filename()).is_ok() {
true => column("", Color::Green),
true => column("", Color::Green),
false => column("✘", Color::Red),
}
}
Expand Down Expand Up @@ -271,7 +271,7 @@ fn probe_treesitter_feature(lang: &str, feature: TsFeature) -> std::io::Result<(
let mut stdout = stdout.lock();

let found = match load_runtime_file(lang, feature.runtime_filename()).is_ok() {
true => "".green(),
true => "".green(),
false => "✘".red(),
};
writeln!(stdout, "{} queries: {}", feature.short_title(), found)?;
Expand Down

0 comments on commit 268b6af

Please sign in to comment.