From a764e4a2e0247dce63e55edb4b712566c0eb20b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Sun, 26 Apr 2020 22:54:46 -0300 Subject: Fix deleting at start --- point.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3