Skip non-file inputs when using --diff

This commit is contained in:
sharkdp authored and David Peter committed 2020-04-24 16:12:38 +02:00
1 parent 8e18786556
commit 23afc8e90c
3 files changed
+22 -18

No files matched your search

+1 -1
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);