Skip to content

Commit d79cce4

Browse files
authored
fix(helix-term): correct health status for non-existent grammar paths (#14619)
1 parent 29eb570 commit d79cce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helix-term/src/health.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ fn probe_parser(grammar_name: &str) -> std::io::Result<()> {
365365
write!(stdout, "Tree-sitter parser: ")?;
366366

367367
match helix_loader::grammar::get_language(grammar_name) {
368-
Ok(_) => writeln!(stdout, "{}", "✓".green()),
369-
Err(_) => writeln!(stdout, "{}", "None".yellow()),
368+
Ok(Some(_)) => writeln!(stdout, "{}", "✓".green()),
369+
Ok(None) | Err(_) => writeln!(stdout, "{}", "None".yellow()),
370370
}
371371
}
372372

0 commit comments

Comments
 (0)