diff options
author | pommicket <pommicket@gmail.com> | 2024-10-29 21:02:38 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2024-10-29 21:04:13 -0400 |
commit | d070e6c8be957db89ef15f912925dd605be500a1 (patch) | |
tree | f9fa7f88a568f614018a8ac498d6799294895b0a /lsp-write.c | |
parent | 388709d6bd89c119d35e2cccbb43f9337e91b7d8 (diff) |
Fix find+replace when replacement matches pattern
Diffstat (limited to 'lsp-write.c')
-rw-r--r-- | lsp-write.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lsp-write.c b/lsp-write.c index 70a9f39..9788347 100644 --- a/lsp-write.c +++ b/lsp-write.c @@ -117,6 +117,7 @@ static void write_arr_elem_arr_start(JSONWriter *o) { } static void write_number(JSONWriter *o, double number) { + // NOTE: it's important to have this precision here, e.g. for large InitializeParams.processId str_builder_appendf(o->builder, "%.17g", number); } |