Merge remote-tracking branch 'origin/main' into cache
# Conflicts: # crates/gpui/src/elements/div.rs
This commit is contained in:
@@ -11,7 +11,7 @@ use itertools::Itertools;
|
||||
use project::{Fs, ProjectEntryId};
|
||||
use search::{buffer_search::DivRegistrar, BufferSearchBar};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use settings::{Settings, SettingsStore};
|
||||
use settings::Settings;
|
||||
use terminal::terminal_settings::{TerminalDockPosition, TerminalSettings};
|
||||
use ui::{h_stack, ButtonCommon, Clickable, IconButton, IconSize, Selectable, Tooltip};
|
||||
use util::{ResultExt, TryFutureExt};
|
||||
@@ -159,15 +159,6 @@ impl TerminalPanel {
|
||||
height: None,
|
||||
_subscriptions: subscriptions,
|
||||
};
|
||||
let mut old_dock_position = this.position(cx);
|
||||
cx.observe_global::<SettingsStore>(move |this, cx| {
|
||||
let new_dock_position = this.position(cx);
|
||||
if new_dock_position != old_dock_position {
|
||||
old_dock_position = new_dock_position;
|
||||
cx.emit(PanelEvent::ChangePosition);
|
||||
}
|
||||
})
|
||||
.detach();
|
||||
this
|
||||
}
|
||||
|
||||
|
||||
@@ -600,6 +600,9 @@ fn possible_open_targets(
|
||||
|
||||
pub fn regex_search_for_query(query: &project::search::SearchQuery) -> Option<RegexSearch> {
|
||||
let query = query.as_str();
|
||||
if query == "." {
|
||||
return None;
|
||||
}
|
||||
let searcher = RegexSearch::new(&query);
|
||||
searcher.ok()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user