summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--page.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/page.c b/page.c
index 7e545c5..e2a122d 100644
--- a/page.c
+++ b/page.c
@@ -144,3 +144,7 @@ void delete_at_point(struct point *point) {
page->element_count--;
}
}
+
+uint8_t get_element(struct point *point) {
+ return point->current_page->buffer[index_to_offset(point->current_page, point->index)];
+}