summaryrefslogtreecommitdiff
path: root/point.c
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-04-26 22:54:46 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-04-26 22:54:46 -0300
commita764e4a2e0247dce63e55edb4b712566c0eb20b1 (patch)
treeed0ea29b78bc9a34994ee5fcf19ab80779ac3261 /point.c
parent5427bf8939f0ed254db9db32a6d96af98e641f59 (diff)
downloadjet-a764e4a2e0247dce63e55edb4b712566c0eb20b1.tar.gz
jet-a764e4a2e0247dce63e55edb4b712566c0eb20b1.zip
Fix deleting at start
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);