Small fixes after terminal split (#22468)
* removes cache access workarounds as https://github.com/zed-industries/zed/pull/21165 is supposed to fix this * use `WeakModel<Project>` inside `Pane` just in case Release Notes: - N/A
This commit is contained in:
parent
7903f4ea58
commit
3e3a5f04a2
3 changed files with 46 additions and 46 deletions
|
@ -1753,17 +1753,12 @@ impl<'a> WindowContext<'a> {
|
|||
.iter_mut()
|
||||
.map(|listener| listener.take()),
|
||||
);
|
||||
if let Some(element_states) = window
|
||||
.rendered_frame
|
||||
.accessed_element_states
|
||||
.get(range.start.accessed_element_states_index..range.end.accessed_element_states_index)
|
||||
{
|
||||
window.next_frame.accessed_element_states.extend(
|
||||
element_states
|
||||
.iter()
|
||||
.map(|(id, type_id)| (GlobalElementId(id.0.clone()), *type_id)),
|
||||
);
|
||||
}
|
||||
window.next_frame.accessed_element_states.extend(
|
||||
window.rendered_frame.accessed_element_states[range.start.accessed_element_states_index
|
||||
..range.end.accessed_element_states_index]
|
||||
.iter()
|
||||
.map(|(id, type_id)| (GlobalElementId(id.0.clone()), *type_id)),
|
||||
);
|
||||
|
||||
window
|
||||
.text_system
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue