aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs13
1 files changed, 6 insertions, 7 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 6e000534..d307456e 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -133,13 +133,12 @@ impl Application {
Notification::PublishDiagnostics(params) => {
let path = Some(params.uri.to_file_path().unwrap());
- let view: Option<&mut View> = None;
- // TODO
- // let view = self
- // .editor
- // .views
- // .iter_mut()
- // .find(|view| view.doc.path == path);
+ let view = self
+ .editor
+ .tree
+ .views()
+ .map(|(view, _key)| view)
+ .find(|view| view.doc.path == path);
if let Some(view) = view {
let doc = view.doc.text().slice(..);