aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorPascal Kuthe2023-06-28 14:35:31 +0000
committerGitHub2023-06-28 14:35:31 +0000
commit4a2337d828c6c2fa7c0e46052e4c8a62dbd4737d (patch)
tree6d99233c1411fb6d4fcbcd87f0161071d4faac76 /helix-view
parentd8f9b901ddb1d91bf3ade66cf091e93b5cab6e49 (diff)
correctly map unsorted positions (#7471)
* correctly map unsorted positions * Fix typo Co-authored-by: Michael Davis <mcarsondavis@gmail.com> --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/document.rs2
1 files changed, 1 insertions, 1 deletions
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)),
);
}
};