mirror of
https://github.com/sharkdp/bat
synced 2026-08-09 19:51:48 +00:00
Skip non-file inputs when using --diff
This commit is contained in:
+1
-1
@@ -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