diff options
author | Pascal Kuthe | 2023-06-28 14:35:31 +0000 |
---|---|---|
committer | GitHub | 2023-06-28 14:35:31 +0000 |
commit | 4a2337d828c6c2fa7c0e46052e4c8a62dbd4737d (patch) | |
tree | 6d99233c1411fb6d4fcbcd87f0161071d4faac76 /helix-view | |
parent | d8f9b901ddb1d91bf3ade66cf091e93b5cab6e49 (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.rs | 2 |
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)), ); } }; |