fix(manage): prevend auto conversion 'CRLF' to 'LF' in update lazy-lock.json on Windows. Fixes #1093 (#1094)

This commit is contained in:
KANATSU Minoru 2023-10-09 23:17:42 +09:00 committed by GitHub
parent 41d3b2a9db
commit 5579d72576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ M._loaded = false
function M.update()
vim.fn.mkdir(vim.fn.fnamemodify(Config.options.lockfile, ":p:h"), "p")
local f = assert(io.open(Config.options.lockfile, "w"))
local f = assert(io.open(Config.options.lockfile, "wb"))
f:write("{\n")
M.lock = {}