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:
@@ -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")]
|
||||
|
Reference in New Issue
Block a user