Skip to content

Commit 25935f3

Browse files
committed
update bat to v0.24
1 parent 303fcca commit 25935f3

File tree

5 files changed

+33
-106
lines changed

5 files changed

+33
-106
lines changed

Cargo.lock

Lines changed: 30 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ clap_complete = "4.4.6"
5454
memchr = "2.7.1"
5555
pathdiff = "0.2.1"
5656
terminal_size = "0.3.0"
57-
bat = { version = "^0.23.0", default-features = false, features = ["regex-onig"], optional = true }
57+
bat = { version = "^0.24.0", default-features = false, features = ["regex-onig"], optional = true }
5858
grep-regex = { version = "0.1.12", optional = true }
5959
grep-searcher = { version = "0.1.13", optional = true }
6060
ignore = { version = "0.4", optional = true }

assets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Assets imported from [bat](https://github.com/sharkdp/bat)
22

3-
`syntaxes.bin` and `ansi.tmTheme` were imported from bat `1b2c69aee86d4c1f58843c9ebbea0d32e3a73dd6`. They're licensed with
3+
`syntaxes.bin` and `ansi.tmTheme` were imported from bat `cd81c7fa6bf0d061f455f67aae72dc5537f7851d`. They're licensed with
44
[the MIT license](./bat-LICENSE-MIT).
55

66
## How to update `syntaxes.bin`

assets/syntaxes.bin

-4.44 KB
Binary file not shown.

src/bat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl<'main> BatPrinter<'main> {
183183

184184
// Note: controller.run() returns true when no error
185185
// XXX: bat's Error type cannot be converted to anyhow::Error since it does not implement Sync
186-
match controller.run(vec![input]) {
186+
match controller.run(vec![input], None) {
187187
Ok(true) => Ok(()),
188188
Ok(false) => Err(Error::new(BatPrintError {
189189
path: file.path,

0 commit comments

Comments
 (0)