From f67094bce357a76334a717ed669b377d3b93d18e Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 25 Dec 2022 13:35:36 -0500 Subject: fix various problems from texlab test --- lsp-parse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lsp-parse.c') diff --git a/lsp-parse.c b/lsp-parse.c index 86a223d..84b44e2 100644 --- a/lsp-parse.c +++ b/lsp-parse.c @@ -337,6 +337,9 @@ static void process_message(LSP *lsp, JSON *json) { LSPResponse response = {0}; bool add_to_messages = false; response.request = response_to; + // make sure (LSPString){0} gets treated as an empty string + arr_add(response.string_data, '\0'); + switch (response_to.type) { case LSP_REQUEST_COMPLETION: add_to_messages = parse_completion(lsp, json, &response); -- cgit v1.2.3