feat(state): click_at (#36)

This commit is contained in:
EdJoPaTo
2024-05-22 08:35:06 +02:00
committed by GitHub
parent c2b2340ef4
commit d23f55b2ad
3 changed files with 102 additions and 23 deletions
+7 -1
View File
@@ -186,6 +186,8 @@ where
inner_area
});
state.last_area = area;
state.last_rendered_identifiers.clear();
if area.width < 1 || area.height < 1 {
return;
}
@@ -324,8 +326,12 @@ where
if is_selected {
buf.set_style(area, self.highlight_style);
}
state
.last_rendered_identifiers
.push((area.y, identifier.clone()));
}
state.last_visible_identifiers = visible
state.last_identifiers = visible
.into_iter()
.map(|flattened| flattened.identifier)
.collect();