add comment explaining offsets

This commit is contained in:
Keith Simmons 2022-04-13 13:30:03 -07:00
parent f20e3f35a1
commit 9cec6d8d65

View file

@ -848,6 +848,8 @@ struct ClipboardSelection {
}
pub struct NavigationData {
// Matching offsets for anchor and scroll_top_anchor allows us to recreate the anchor if the buffer
// has since been closed
anchor: Anchor,
offset: usize,
scroll_position: Vector2F,