diff options
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r-- | helix-term/src/application.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 8af963a9..38c0d88a 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -129,10 +129,9 @@ impl Application { .editor .documents .iter_mut() - .find(|(_, doc)| doc.borrow().path() == path.as_ref()); + .find(|(_, doc)| doc.path() == path.as_ref()); if let Some((_, doc)) = doc { - let mut doc = doc.borrow_mut(); let text = doc.text(); let diagnostics = params @@ -167,7 +166,6 @@ impl Application { .collect(); doc.diagnostics = diagnostics; - drop(doc); // TODO: we want to process all the events in queue, then render. publishDiagnostic tends to send a whole bunch of events self.render(); } |