diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rs index 5b1a482f5e1f7d723d088a51b579da727ff9ef62..7d13ea1f2a02018ea0d4f0589c61d9765f244eae 100644 --- a/crates/search/src/buffer_search.rs +++ b/crates/search/src/buffer_search.rs @@ -529,6 +529,11 @@ impl BufferSearchBar { this.toggle_whole_word(action, cx); } })); + registrar.register_handler(ForDeployed(|this, action: &ToggleRegex, cx| { + if this.supported_options().regex { + this.toggle_regex(action, cx); + } + })); registrar.register_handler(ForDeployed(|this, action: &ToggleSelection, cx| { if this.supported_options().selection { this.toggle_selection(action, cx);