Merge pull request #3095 from mhelsley/mhelsley-fix-lessopen

Fix lessopen feature
This commit is contained in:
Keith Hall authored and GitHub committed 2024-11-13 21:58:02 +02:00
commit 9bed8adb16
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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()),
)