fix creating a file wrong permissions
This commit is contained in:
@@ -19,7 +19,7 @@ local function create_file(file)
|
|||||||
else
|
else
|
||||||
-- FIXME: i don't know why but libuv keeps creating file with executable permissions
|
-- 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
|
-- 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)
|
luv.fs_close(fd)
|
||||||
api.nvim_out_write('File '..file..' was properly created\n')
|
api.nvim_out_write('File '..file..' was properly created\n')
|
||||||
refresh_tree()
|
refresh_tree()
|
||||||
|
|||||||
Reference in New Issue
Block a user