summaryrefslogtreecommitdiff
path: root/point.c
diff options
context:
space:
mode:
Diffstat (limited to 'point.c')
-rw-r--r--point.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/point.c b/point.c
index aef23ef..1de3eef 100644
--- a/point.c
+++ b/point.c
@@ -82,7 +82,7 @@ void delete_at_point(struct point *point) {
delete_at_gap(point->page);
move_point_backward(point);
}
- } else {
+ } else if (point->index > 0) {
align_gap(point);
delete_at_gap(point->page);
move_point_backward(point);