Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

fixup! buffer search: Fix up rough edges

Piotr Osiewicz18393d1fac31
diff --git a/crates/search2/src/buffer_search.rs b/crates/search2/src/buffer_search.rs
index 4ea0226d48c..285f37d5cbb 100644
--- a/crates/search2/src/buffer_search.rs
+++ b/crates/search2/src/buffer_search.rs
@@ -183,6 +183,12 @@ impl Render for BufferSearchBar {
.on_action(cx.listener(Self::replace_all))
})
})
+ .when(self.supported_options().case, |this| {
+ this.on_action(cx.listener(Self::toggle_case_sensitive))
+ })
+ .when(self.supported_options().word, |this| {
+ this.on_action(cx.listener(Self::toggle_whole_word))
+ })
.w_full()
.p_1()
.child(