Skip to content

Commit

Permalink
Update bat, git2, and syntect
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed May 13, 2022
1 parent a53dc02 commit a8c79aa
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 34 deletions.
73 changes: 47 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ name = "delta"
path = "src/main.rs"

[dependencies]
bat = "0.20.0"
bat = "0.21.0"
chrono = "0.4.19"
chrono-humanize = "0.2.1"
ansi_colours = "1.0.4"
Expand All @@ -38,21 +38,17 @@ serde = { version = "1.0.118", features = ["derive"] }
serde_json = "1.0.70"
shell-words = "1.0.0"
smol_str = "0.1.21"
syntect = "5.0.0"
unicode-segmentation = "1.9.0"
unicode-width = "0.1.9"
vte = "0.10.1"
xdg = "2.4.1"

[dependencies.git2]
version = "0.13.25"
version = "0.14.0"
default-features = false
features = []

[dependencies.syntect]
version = "4.6.0"
default-features = false
features = ["parsing", "assets", "yaml-load", "dump-load", "regex-onig"]

[dependencies.sysinfo]
version = "0.23.0"
# no default features to disable the use of threads
Expand Down
6 changes: 5 additions & 1 deletion src/paint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,11 @@ pub fn get_syntax_style_sections_for_lines<'a>(
) {
(Some(highlighter), true) => {
for (line, _) in lines.iter() {
line_sections.push(highlighter.highlight(line, &config.syntax_set));
line_sections.push(
highlighter
.highlight_line(line, &config.syntax_set)
.unwrap(),
);
}
}
_ => {
Expand Down

0 comments on commit a8c79aa

Please sign in to comment.