summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-29 13:38:46 -0500
committerpommicket <pommicket@gmail.com>2022-12-29 13:38:46 -0500
commit6e6b407550db47d3f9c85875c0f69444cf640796 (patch)
tree433d70ad1857744cad830b141c9cabd1e7ddf7d6 /build.c
parentf1e2e8382cc09bacb5da9e3c9463fea983a9e146 (diff)
hover highlight
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);
}