mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00:00
Merge pull request #3095 from mhelsley/mhelsley-fix-lessopen
Fix lessopen feature
This commit is contained in:
commit
9bed8adb16
@ -33,7 +33,7 @@ minimal-application = [
|
|||||||
]
|
]
|
||||||
git = ["git2"] # Support indicating git modifications
|
git = ["git2"] # Support indicating git modifications
|
||||||
paging = ["shell-words", "grep-cli"] # Support applying a pager on the output
|
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"]
|
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:
|
# 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(),
|
path_str.to_string(),
|
||||||
OpenedInputKind::OrdinaryFile(path.to_path_buf()),
|
OpenedInputKind::OrdinaryFile(path.to_path_buf()),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user