summaryrefslogtreecommitdiff
path: root/ide-usages.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-05 13:55:53 -0400
committerpommicket <pommicket@gmail.com>2023-08-05 13:55:53 -0400
commit4ab3631aadcd27df708a16f6bf22953e0ff9b1cf (patch)
tree4fca0b612ae40cf8723c4c57fd0243631f7e51e7 /ide-usages.c
parent601c081d62e0cd9c0e6750b424ecc5baa9a45b5f (diff)
internalize Line structure
Diffstat (limited to 'ide-usages.c')
-rw-r--r--ide-usages.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ide-usages.c b/ide-usages.c
index a3b9194..b9c2085 100644
--- a/ide-usages.c
+++ b/ide-usages.c
@@ -65,8 +65,7 @@ void usages_process_lsp_response(Ted *ted, const LSPResponse *response) {
if (last_buffer) {
// read the line from the buffer
if (line < last_buffer->nlines) {
- BufferPos pos = {.line = line, .index = 0};
- line_text = buffer_get_utf8_text_at_pos(last_buffer, pos, last_buffer->lines[line].len);
+ line_text = buffer_get_line_utf8(last_buffer, line);
}
} else if (last_file) {
// read the line from the file