mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
Open funcs_data.mpack in binary mode. (#14944)
"b" flag is required to read binary files on Windows. https://www.lua.org/pil/21.2.2.html
This commit is contained in:
parent
390fed3248
commit
fe10a4e555
@ -123,7 +123,7 @@ end
|
|||||||
w('\n\nsyn case match')
|
w('\n\nsyn case match')
|
||||||
local vimfun_start = 'syn keyword vimFuncName contained '
|
local vimfun_start = 'syn keyword vimFuncName contained '
|
||||||
w('\n\n' .. vimfun_start)
|
w('\n\n' .. vimfun_start)
|
||||||
funcs = mpack.unpack(io.open(funcs_file):read("*all"))
|
funcs = mpack.unpack(io.open(funcs_file, 'rb'):read("*all"))
|
||||||
local started = 0
|
local started = 0
|
||||||
for name, def in pairs(funcs) do
|
for name, def in pairs(funcs) do
|
||||||
if name then
|
if name then
|
||||||
|
Loading…
Reference in New Issue
Block a user