Skip to content

Commit

Permalink
fix: don't trim content by default when reading a file
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed May 6, 2024
1 parent f2b5219 commit c637f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/astrocore/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function M.read_file(path)

local fd = assert(uv.fs_open(path, "r", 420))
local stat = assert(uv.fs_fstat(fd))
local content = assert(uv.fs_read(fd, stat.size)):gsub("%s", "")
local content = assert(uv.fs_read(fd, stat.size))
assert(uv.fs_close(fd))
return content
end
Expand Down

0 comments on commit c637f51

Please sign in to comment.