diff --git a/runtime/lua/vim/secure.lua b/runtime/lua/vim/secure.lua index e5d567ba0c..a2884f84dc 100644 --- a/runtime/lua/vim/secure.lua +++ b/runtime/lua/vim/secure.lua @@ -47,7 +47,7 @@ local function compute_hash(fullpath, bufnr) end else do - local f = io.open(fullpath, 'r') + local f = io.open(fullpath, 'rb') if not f then return nil, nil end