From ee9e965fa28ee9d1d38b67e30b179488cbbca4eb Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 30 Sep 2025 12:53:43 -0400 Subject: Fix parsing of \u sequences in LSP responses --- lsp-json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp-json.c b/lsp-json.c index 4884c8c..ae25267 100644 --- a/lsp-json.c +++ b/lsp-json.c @@ -577,7 +577,7 @@ void json_string_get(const JSON *json, JSONString string, char *buf, size_t buf_ hex[0] = text[i++]; hex[1] = text[i++]; hex[2] = text[i++]; - hex[3] = text[i++]; + hex[3] = text[i]; unsigned code_point=0; sscanf(hex, "%04x", &code_point); // technically this won't deal with people writing out UTF-16 surrogate halves -- cgit v1.2.3