1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-07-19 15:15:36 +02:00

Merge pull request from mhelsley/mhelsley-fix-lessopen

Fix lessopen feature
This commit is contained in:
Keith Hall
2024-11-13 21:58:02 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

@ -33,7 +33,7 @@ minimal-application = [
]
git = ["git2"] # Support indicating git modifications
paging = ["shell-words", "grep-cli"] # Support applying a pager on the output
lessopen = ["run_script", "os_str_bytes"] # Support $LESSOPEN preprocessor
lessopen = ["run_script", "os_str_bytes/conversions"] # Support $LESSOPEN preprocessor
build-assets = ["syntect/yaml-load", "syntect/plist-load", "regex", "walkdir"]
# You need to use one of these if you depend on bat as a library:

@ -112,7 +112,7 @@ impl LessOpenPreprocessor {
}
(
RawOsString::from_string(lessopen_stdout),
RawOsString::new(lessopen_stdout),
path_str.to_string(),
OpenedInputKind::OrdinaryFile(path.to_path_buf()),
)