diff options
author | pommicket <pommicket@gmail.com> | 2022-12-29 13:38:46 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-29 13:38:46 -0500 |
commit | 6e6b407550db47d3f9c85875c0f69444cf640796 (patch) | |
tree | 433d70ad1857744cad830b141c9cabd1e7ddf7d6 /build.c | |
parent | f1e2e8382cc09bacb5da9e3c9463fea983a9e146 (diff) |
hover highlight
Diffstat (limited to 'build.c')
-rw-r--r-- | build.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |