Fix the duplicate hints
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
parent
63074c5cd8
commit
addb62c1fc
2 changed files with 9 additions and 15 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue