Skip to content

Commit 85e74a0

Browse files
authored
Merge branch 'master' into feat/files_support_pageupdown
2 parents f623ac6 + 9fd82f0 commit 85e74a0

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

Cargo.lock

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 extrawurst
3+
Copyright (c) 2025 extrawurst
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/ui/syntax_text.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ impl SyntaxText {
7676
scope_time!("syntax_highlighting.0");
7777
let plain_text = || SYNTAX_SET.find_syntax_plain_text();
7878
let syntax = SYNTAX_SET
79-
.find_syntax_for_file(
80-
file_path.to_str().unwrap_or_default(),
81-
)
79+
.find_syntax_for_file(file_path)
8280
.unwrap_or_else(|e| {
8381
log::error!("Could not read the file to detect its syntax: {e}");
8482
Some(plain_text())

0 commit comments

Comments
 (0)