summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-04-27 00:29:38 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-04-27 00:29:38 -0300
commit85b84f23d22a84f9961a66beed99df489478dd86 (patch)
tree0ca49a135f761de03106a86c597c6b7c8ae78fa4
parenta764e4a2e0247dce63e55edb4b712566c0eb20b1 (diff)
downloadjet-85b84f23d22a84f9961a66beed99df489478dd86.tar.gz
jet-85b84f23d22a84f9961a66beed99df489478dd86.zip
Simplify delete case where there's only one page
-rw-r--r--point.c3
1 files changed, 1 insertions, 2 deletions
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);