summaryrefslogtreecommitdiff
path: root/ide-usages.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-12 10:33:11 -0300
committerpommicket <pommicket@gmail.com>2023-08-12 10:33:11 -0300
commita974b6192479e5f7f6d6fcc328313c76290f486d (patch)
tree01ec86dcbc22c94e43936efbda6673c19ed8a5e0 /ide-usages.c
parentcca844b42a6303282e7536c8834b74ff56140cbf (diff)
internalize buffer - broke some stuff
Diffstat (limited to 'ide-usages.c')
-rw-r--r--ide-usages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ide-usages.c b/ide-usages.c
index 435b7a2..4caa644 100644
--- a/ide-usages.c
+++ b/ide-usages.c
@@ -77,7 +77,7 @@ void usages_process_lsp_response(Ted *ted, const LSPResponse *response) {
char *line_text = NULL;
if (last_buffer) {
// read the line from the buffer
- if (line < last_buffer->nlines) {
+ if (line < buffer_line_count(last_buffer)) {
line_text = buffer_get_line_utf8(last_buffer, line);
}
} else if (last_file) {
@@ -122,7 +122,7 @@ void usages_process_lsp_response(Ted *ted, const LSPResponse *response) {
}
if (last_file)
fclose(last_file);
- buffer->view_only = true;
+ buffer_set_view_only(buffer, true);
// the build_dir doesn't really matter since we're using absolute paths
// but might as well set it to something reasonable.