From 4a2337d828c6c2fa7c0e46052e4c8a62dbd4737d Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Wed, 28 Jun 2023 16:35:31 +0200 Subject: correctly map unsorted positions (#7471) * correctly map unsorted positions * Fix typo Co-authored-by: Michael Davis --------- Co-authored-by: Michael Davis --- helix-view/src/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view') diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index d78d30d8..b08370f9 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -1197,7 +1197,7 @@ impl Document { if let Some(data) = Rc::get_mut(annotations) { changes.update_positions( data.iter_mut() - .map(|diagnostic| (&mut diagnostic.char_idx, Assoc::After)), + .map(|annotation| (&mut annotation.char_idx, Assoc::After)), ); } }; -- cgit v1.2.3-70-g09d2