From 35baae5af5f0682205b5c941efc2bd6521020f4b Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Fri, 20 Dec 2024 11:01:43 -0500 Subject: [PATCH] fix: window checksum parsing --- lua/blink/cmp/fuzzy/download/files.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/blink/cmp/fuzzy/download/files.lua b/lua/blink/cmp/fuzzy/download/files.lua index c610d310..3fe6317b 100644 --- a/lua/blink/cmp/fuzzy/download/files.lua +++ b/lua/blink/cmp/fuzzy/download/files.lua @@ -51,9 +51,9 @@ function files.get_checksum_for_file(path) if out.code ~= 0 then return reject('Failed to calculate checksum of pre-built binary: ' .. out.stderr) end local stdout = out.stdout or '' - if os == 'windows' then stdout = vim.split(stdout, '\n')[2] end + if os == 'windows' then stdout = vim.split(stdout, '\r\n')[2] end -- We get an output like 'sha256sum filename' on most systems, so we grab just the checksum - return resolve(vim.split(out.stdout, ' ')[1]) + return resolve(vim.split(stdout, ' ')[1]) end) end) end