Restore zed1 behavior for buffer search deploy
This commit is contained in:
parent
31ff7d40ed
commit
4bfe46f53a
1 changed files with 7 additions and 4 deletions
|
@ -338,7 +338,9 @@ impl BufferSearchBar {
|
||||||
pane.update(cx, |this, cx| {
|
pane.update(cx, |this, cx| {
|
||||||
this.toolbar().update(cx, |this, cx| {
|
this.toolbar().update(cx, |this, cx| {
|
||||||
if let Some(search_bar) = this.item_of_type::<BufferSearchBar>() {
|
if let Some(search_bar) = this.item_of_type::<BufferSearchBar>() {
|
||||||
search_bar.update(cx, |this, cx| this.toggle(deploy, cx));
|
search_bar.update(cx, |this, cx| {
|
||||||
|
this.deploy(deploy, cx);
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let view = cx.build_view(|cx| BufferSearchBar::new(cx));
|
let view = cx.build_view(|cx| BufferSearchBar::new(cx));
|
||||||
|
@ -1651,6 +1653,7 @@ mod tests {
|
||||||
assert_eq!(search_bar.search_options, SearchOptions::NONE);
|
assert_eq!(search_bar.search_options, SearchOptions::NONE);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#[gpui::test]
|
#[gpui::test]
|
||||||
async fn test_replace_simple(cx: &mut TestAppContext) {
|
async fn test_replace_simple(cx: &mut TestAppContext) {
|
||||||
let (editor, search_bar, cx) = init_test(cx);
|
let (editor, search_bar, cx) = init_test(cx);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue