From 85b84f23d22a84f9961a66beed99df489478dd86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Mon, 27 Apr 2020 00:29:38 -0300 Subject: Simplify delete case where there's only one page --- point.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'point.c') diff --git a/point.c b/point.c index 1de3eef..23ce492 100644 --- a/point.c +++ b/point.c @@ -78,9 +78,8 @@ void delete_at_point(struct point *point) { free_page(point->page->next); point->index = 0; } else { - align_gap(point); delete_at_gap(point->page); - move_point_backward(point); + point->index = 0; } } else if (point->index > 0) { align_gap(point); -- cgit v1.2.3