diff options
author | pommicket <pommicket@gmail.com> | 2023-01-03 17:10:40 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-03 17:10:40 -0500 |
commit | 0d92c03f3998fe4d16f3ba928d3a94583755e1ce (patch) | |
tree | a2afad849822433ea795ce6bc216321722e754f2 /lsp-parse.c | |
parent | baae904ed2c97ba5c701442ec5ef6900715f785d (diff) |
rename ted_seterr to ted_error
Diffstat (limited to 'lsp-parse.c')
-rw-r--r-- | lsp-parse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lsp-parse.c b/lsp-parse.c index 7b5849f..14db651 100644 --- a/lsp-parse.c +++ b/lsp-parse.c @@ -869,8 +869,9 @@ void process_message(LSP *lsp, JSON *json) { response.error = json_string_get_alloc(json, error.val.string); } - if (response.error && error_code != LSP_ERROR_REQUEST_CANCELLED) { - add_to_messages = true; + if (response.error) { + if (error_code != LSP_ERROR_REQUEST_CANCELLED) + add_to_messages = true; } else switch (response_to.type) { case LSP_REQUEST_COMPLETION: add_to_messages = parse_completion(lsp, json, &response); |