summaryrefslogtreecommitdiff
path: root/page.c
diff options
context:
space:
mode:
Diffstat (limited to 'page.c')
-rw-r--r--page.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/page.c b/page.c
index e2a122d..09bf860 100644
--- a/page.c
+++ b/page.c
@@ -121,6 +121,7 @@ void insert_at_point(struct point *point, uint8_t c) {
page->buffer[page->gap_start] = c;
page->gap_start++;
page->element_count++;
+ move_point_forward(point);
}
void delete_at_point(struct point *point) {
@@ -142,6 +143,7 @@ void delete_at_point(struct point *point) {
if (page->gap_start != 0) {
page->gap_start--;
page->element_count--;
+ move_point_backward(point);
}
}