diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-04-27 00:29:38 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-04-27 00:29:38 -0300 |
commit | 85b84f23d22a84f9961a66beed99df489478dd86 (patch) | |
tree | 0ca49a135f761de03106a86c597c6b7c8ae78fa4 /point.c | |
parent | a764e4a2e0247dce63e55edb4b712566c0eb20b1 (diff) | |
download | jet-85b84f23d22a84f9961a66beed99df489478dd86.tar.gz jet-85b84f23d22a84f9961a66beed99df489478dd86.zip |
Simplify delete case where there's only one page
Diffstat (limited to 'point.c')
-rw-r--r-- | point.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |