Skip to content

Commit

Permalink
Update events.lua: fix invalid open-file flags rs+ -> r+ (#447)
Browse files Browse the repository at this point in the history
solve issue #385 on windows
  • Loading branch information
tox2ik authored Apr 18, 2024
1 parent 6813009 commit e86e73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dashboard/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function au.register_lsp_root(path)

-- callback hell holy shit but simply than write a async await lib
-- also I don't link to add a thirdpart plugin. this is just a small code
uv.fs_open(path, 'rs+', 438, function(err, fd)
uv.fs_open(path, 'r+', 384, function(err, fd)
assert(not err, err)
uv.fs_fstat(fd, function(err, stat)
assert(not err, err)
Expand Down

0 comments on commit e86e73a

Please sign in to comment.