search: Fix some inconsistencies between project and buffer search bars (#36103)
- project search query string now turns red when no results are found matching buffer search behavior - General code deduplication as well as more consistent layout between the two bars, as some minor details have drifted apart - Tab cycling in buffer search now ends up in editor focus when cycling backwards, matching forward cycling - Report parse errors in filter include and exclude editors Release Notes: - N/A
This commit is contained in:
parent
23d0433158
commit
8d6982e78f
4 changed files with 545 additions and 689 deletions
|
@ -3878,9 +3878,7 @@ impl Workspace {
|
|||
local,
|
||||
focus_changed,
|
||||
} => {
|
||||
cx.on_next_frame(window, |_, window, _| {
|
||||
window.invalidate_character_coordinates();
|
||||
});
|
||||
window.invalidate_character_coordinates();
|
||||
|
||||
pane.update(cx, |pane, _| {
|
||||
pane.track_alternate_file_items();
|
||||
|
@ -3921,9 +3919,7 @@ impl Workspace {
|
|||
}
|
||||
}
|
||||
pane::Event::Focus => {
|
||||
cx.on_next_frame(window, |_, window, _| {
|
||||
window.invalidate_character_coordinates();
|
||||
});
|
||||
window.invalidate_character_coordinates();
|
||||
self.handle_pane_focused(pane.clone(), window, cx);
|
||||
}
|
||||
pane::Event::ZoomIn => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue