aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-05-28 22:43:33 +0200
committerThomas White <taw@physics.org>2017-05-28 22:43:33 +0200
commitab072c7459888170113cbec8b9be7c9899d52cb3 (patch)
tree9c72b00a86f782bfb3b8c4a25bc15a608c26f34b
parent272e297df33bbfeaca3daebbbb1b074d7d8f036b (diff)
Update deletion end offset when shortening runs
-rw-r--r--src/frame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index cf4ee4d..c59b580 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -992,6 +992,7 @@ void delete_text_in_paragraph(Paragraph *para, size_t offs1, ssize_t offs2)
}
para->runs[i].para_offs_bytes -= del_len;
}
+ offs2 -= del_len;
}
}