1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-03 11:52:26 +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

@@ -16,7 +16,7 @@ pub enum VisibleLines {
}
impl VisibleLines {
pub fn diff_context(&self) -> bool {
pub fn diff_mode(&self) -> bool {
match self {
Self::Ranges(_) => false,
#[cfg(feature = "git")]