mirror of
https://github.com/sharkdp/bat
synced 2026-08-02 18:41:42 +00:00
Skip non-file inputs when using --diff
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@ impl<'a> InteractivePrinter<'a> {
|
||||
config: &'a Config,
|
||||
assets: &'a HighlightingAssets,
|
||||
input: &mut OpenedInput,
|
||||
#[cfg(feature = "git")] line_changes: &'a Option<LineChanges>,
|
||||
line_changes: &'a Option<LineChanges>,
|
||||
) -> Self {
|
||||
let theme = assets.get_theme(&config.theme);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user