diff options
Diffstat (limited to 'lsp-parse.c')
-rw-r--r-- | lsp-parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lsp-parse.c b/lsp-parse.c index 8c914fa..56a980d 100644 --- a/lsp-parse.c +++ b/lsp-parse.c @@ -495,7 +495,8 @@ static bool parse_hover(LSP *lsp, const JSON *json, LSPResponse *response) { JSONObject result = json_force_object(result_value); JSONValue range = json_object_get(json, result, "range"); - parse_range(lsp, json, range, &hover->range); + if (range.type != JSON_UNDEFINED) + parse_range(lsp, json, range, &hover->range); JSONValue contents = json_object_get(json, result, "contents"); |