Fix the duplicate hints

Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Kirill Bulatov 2023-06-12 11:55:27 +03:00
parent 63074c5cd8
commit addb62c1fc
2 changed files with 9 additions and 15 deletions

View file

@ -305,7 +305,7 @@ impl DisplayMap {
let mut new_inlays = Vec::new();
for (&location, hints) in new_hints {
for hint in hints {
let mut hint_anchor =
let hint_anchor =
buffer_snapshot.anchor_in_excerpt(location.excerpt_id, hint.position);
new_inlays.push(InlayProperties {
position: hint_anchor.bias_left(&buffer_snapshot),