Avoid double handle-read in File::buffer_updated

This commit is contained in:
Max Brunsfeld
2021-06-25 17:21:42 -07:00
parent 60ee97be24
commit e2b9ab500f
2 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -1339,7 +1339,7 @@ impl Buffer {
#[cfg(not(test))]
pub fn send_operation(&mut self, operation: Operation, cx: &mut ModelContext<Self>) {
if let Some(file) = &self.file {
file.buffer_updated(cx.handle(), operation, cx.as_mut());
file.buffer_updated(self.remote_id, operation, cx.as_mut());
}
}