summaryrefslogtreecommitdiff
path: root/lsp-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lsp-parse.c')
-rw-r--r--lsp-parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lsp-parse.c b/lsp-parse.c
index 4b05f29..07837b5 100644
--- a/lsp-parse.c
+++ b/lsp-parse.c
@@ -208,7 +208,7 @@ static bool parse_completion(LSP *lsp, const JSON *json, LSPResponse *response)
item->text_edit = (LSPTextEdit) {
.type = LSP_TEXT_EDIT_PLAIN,
.at_cursor = true,
- .range = {0},
+ .range = {{0}},
.new_text = item->label
};
@@ -611,7 +611,7 @@ static void process_message(LSP *lsp, JSON *json) {
LSPRequest initialized = {
.type = LSP_REQUEST_INITIALIZED,
- .data = {0},
+ .data = {{0}},
};
write_request(lsp, &initialized);
// we can now send requests which have nothing to do with initialization