Store hints in the new map only

This commit is contained in:
Kirill Bulatov 2023-06-06 23:52:10 +03:00
parent 83f4320b60
commit 78b3c9b88a
2 changed files with 13 additions and 31 deletions

View file

@ -879,7 +879,6 @@ impl EditorElement {
for (ix, line_with_invisibles) in layout.position_map.line_layouts.iter().enumerate() {
let row = start_row + ix as u32;
line_with_invisibles.draw(
editor,
layout,
row,
scroll_top,
@ -1795,7 +1794,6 @@ impl LineWithInvisibles {
fn draw(
&self,
editor: &mut Editor,
layout: &LayoutState,
row: u32,
scroll_top: f32,
@ -1819,9 +1817,6 @@ impl LineWithInvisibles {
cx,
);
// TODO kb bad: syscalls + cloning happen very frequently, check the timestamp first
let new_hints = editor.inlay_hints.read();
self.draw_invisibles(
&selection_ranges,
layout,