Add back the main structure

This commit is contained in:
Mikayla 2023-12-05 16:52:29 -08:00
parent ab140ee4c2
commit 2ee0ecb677
No known key found for this signature in database
4 changed files with 383 additions and 310 deletions

View file

@ -976,7 +976,6 @@ impl Terminal {
}
pub fn try_sync(&mut self, cx: &mut ModelContext<Self>) {
println!("trying to sync");
let term = self.term.clone();
let mut terminal = if let Some(term) = term.try_lock_unfair() {
@ -1235,7 +1234,7 @@ impl Terminal {
}
///Scroll the terminal
pub fn scroll_wheel(&mut self, e: ScrollWheelEvent, origin: Point<Pixels>) {
pub fn scroll_wheel(&mut self, e: &ScrollWheelEvent, origin: Point<Pixels>) {
let mouse_mode = self.mouse_mode(e.shift);
if let Some(scroll_lines) = self.determine_scroll_lines(&e, mouse_mode) {