diff --git a/src/controller.rs b/src/controller.rs index 7d760a2f..6e0cdb2a 100644 --- a/src/controller.rs +++ b/src/controller.rs @@ -138,6 +138,7 @@ impl<'b> Controller<'b> { printer: &mut dyn Printer, writer: &mut dyn Write, input: &mut OpenedInput, + #[cfg(feature = "git")] line_changes: &Option, ) -> Result<()> { if !input.reader.first_line.is_empty() || self.config.style_components.header() { diff --git a/src/printer.rs b/src/printer.rs index d022dbcf..bddf6d89 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -101,6 +101,7 @@ impl<'a> InteractivePrinter<'a> { config: &'a Config, assets: &'a HighlightingAssets, input: &mut OpenedInput, + #[cfg(feature = "git")] line_changes: &'a Option, ) -> Self { let theme = assets.get_theme(&config.theme);