summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'build.c')
-rw-r--r--build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.c b/build.c
index 07d57eb..9c5ee7a 100644
--- a/build.c
+++ b/build.c
@@ -207,7 +207,7 @@ static void build_frame(Ted *ted, float x1, float y1, float x2, float y2) {
} else {
if (ret == 0) ret = 1;
// got a code point
- buffer_insert_char_at_pos(buffer, buffer_end_of_file(buffer), c);
+ buffer_insert_char_at_pos(buffer, buffer_pos_end_of_file(buffer), c);
p += ret;
}
}
@@ -216,7 +216,7 @@ static void build_frame(Ted *ted, float x1, float y1, float x2, float y2) {
if (any_text_inserted) {
// show bottom of output (only relevant if there are no build errors)
- buffer->cursor_pos = buffer_end_of_file(buffer);
+ buffer->cursor_pos = buffer_pos_end_of_file(buffer);
buffer_scroll_to_cursor(buffer);
}