fix creating a file wrong permissions

This commit is contained in:
kiyan42 2020-05-29 21:13:43 +02:00
parent 36828c18f8
commit e4630f8782

View File

@ -19,7 +19,7 @@ local function create_file(file)
else
-- FIXME: i don't know why but libuv keeps creating file with executable permissions
-- this is why we need to chmod to default file permissions
luv.fs_chmod(file, 0644)
luv.fs_chmod(file, 420)
luv.fs_close(fd)
api.nvim_out_write('File '..file..' was properly created\n')
refresh_tree()