From 7db74f26f3a139a3d1203459fd68da9b0ba363b2 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Mon, 29 Jul 2024 11:55:59 -0700 Subject: [PATCH] fix(tabby-git): allow lang: query being used individually (#2743) --- crates/tabby-git/src/grep/query.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/tabby-git/src/grep/query.rs b/crates/tabby-git/src/grep/query.rs index 2b7cc32b948a..c0018d353a44 100644 --- a/crates/tabby-git/src/grep/query.rs +++ b/crates/tabby-git/src/grep/query.rs @@ -71,6 +71,8 @@ impl GrepQuery { && negative_pattern_matcher.is_none() && file_pattern_matcher.is_empty() && negative_file_pattern_matcher.is_none() + && self.file_types.is_empty() + && self.negative_file_types.is_empty() { bail!("No patterns specified") }