We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
to_str()
1 parent e611e79 commit 7f30be8Copy full SHA for 7f30be8
src/ui/syntax_text.rs
@@ -76,9 +76,7 @@ impl SyntaxText {
76
scope_time!("syntax_highlighting.0");
77
let plain_text = || SYNTAX_SET.find_syntax_plain_text();
78
let syntax = SYNTAX_SET
79
- .find_syntax_for_file(
80
- file_path.to_str().unwrap_or_default(),
81
- )
+ .find_syntax_for_file(file_path)
82
.unwrap_or_else(|e| {
83
log::error!("Could not read the file to detect its syntax: {e}");
84
Some(plain_text())
0 commit comments