summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-07 22:32:59 -0500
committerpommicket <pommicket@gmail.com>2023-01-07 22:32:59 -0500
commit01d5fcc72f6ea29d0f90b845b7565137e7daac14 (patch)
tree39346ae60c418345612ad6c6634943cc630d713d /build.c
parentcb55279a20865fcfde23a160233155d23a09a03b (diff)
fix tags go-to-definition menu, silence errors for LSP not found
Diffstat (limited to 'build.c')
-rw-r--r--build.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.c b/build.c
index 556cffb..93b6643 100644
--- a/build.c
+++ b/build.c
@@ -301,12 +301,12 @@ void build_frame(Ted *ted, float x1, float y1, float x2, float y2) {
buffer_scroll_to_cursor(buffer);
}
- char message[64];
- int status = process_check_status(&ted->build_process, message, sizeof message);
+ ProcessExitInfo info = {0};
+ int status = process_check_status(&ted->build_process, &info);
if (status == 0) {
// hasn't exited yet
} else {
- buffer_insert_utf8_at_cursor(buffer, message);
+ buffer_insert_utf8_at_cursor(buffer, info.message);
buffer_insert_utf8_at_cursor(buffer, "\n");
if (!build_run_next_command_in_queue(ted)) {
ted->building = false;