diff options
author | pommicket <pommicket@gmail.com> | 2022-12-25 13:35:36 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-25 13:35:36 -0500 |
commit | f67094bce357a76334a717ed669b377d3b93d18e (patch) | |
tree | 6721170920a8d78d31a16a532e1e75c740d377d0 /lsp-parse.c | |
parent | 1793fa40528295306d1d790074fdd8f382e8bef3 (diff) |
fix various problems from texlab test
Diffstat (limited to 'lsp-parse.c')
-rw-r--r-- | lsp-parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |