diff options
author | Keith Hall <keith-hall@users.noreply.github.com> | 2024-11-13 21:58:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-13 21:58:02 +0200 |
commit | 9bed8adb16fee21a1fe2a9bd0998d1afb6d53643 (patch) | |
tree | 3f1dace8d84b08e0d92039d8d3690a8ebde7ba42 | |
parent | 07554b0c1d0c22cfbd3beb9d3afee65dbcf2723c (diff) | |
parent | 2e836e98223d6a187d83452aee986d93be88756d (diff) |
Merge pull request #3095 from mhelsley/mhelsley-fix-lessopen
Fix lessopen feature
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/lessopen.rs | 2 |
2 files changed, 2 insertions, 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: diff --git a/src/lessopen.rs b/src/lessopen.rs index c8f5225d..4d7e0ece 100644 --- a/src/lessopen.rs +++ b/src/lessopen.rs @@ -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()), ) |