1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-12 00:02:28 +01:00

Skip non-file inputs when using --diff

This commit is contained in:
sharkdp
2020-04-24 16:06:04 +02:00
committed by David Peter
parent 8e18786556
commit 23afc8e90c
3 changed files with 22 additions and 18 deletions

View File

@@ -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);