summaryrefslogtreecommitdiff
path: root/point.c
diff options
context:
space:
mode:
Diffstat (limited to 'point.c')
-rw-r--r--point.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/point.c b/point.c
index e9d6472..8413ad8 100644
--- a/point.c
+++ b/point.c
@@ -15,7 +15,7 @@ uint16_t index_to_offset(struct point *point) {
}
uint8_t element(struct point *point) {
- return point->page->buffer[index_to_offset(point)];
+ return point->page->elements[index_to_offset(point)];
}
bool at_eof(struct point *point) {
@@ -60,7 +60,7 @@ void insert_at_point(struct point *point, uint8_t c) {
}
}
align_gap(point);
- point->page->buffer[point->page->gap_start] = c;
+ point->page->elements[point->page->gap_start] = c;
point->page->gap_start++;
point->page->element_count++;
move_point_forward(point);