Skip to content

Commit

Permalink
Merge pull request #3095 from mhelsley/mhelsley-fix-lessopen
Browse files Browse the repository at this point in the history
Fix lessopen feature
  • Loading branch information
keith-hall authored Nov 13, 2024
2 parents 07554b0 + 2e836e9 commit 9bed8ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/lessopen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
)
Expand Down

0 comments on commit 9bed8ad

Please sign in to comment.