Skip to content

Commit b1922c6

Browse files
fix(windows): Correctly read file with any fileformat
Fixes #854
1 parent cbd484d commit b1922c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/utils/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function utils.readfile(file, opts)
3232
if opts.raw then
3333
result = data
3434
else
35-
local lines = vim.split(data, '\n')
35+
local lines = vim.split(data, '[\r\n]')
3636
if lines[#lines] == '' then
3737
table.remove(lines, #lines)
3838
end

0 commit comments

Comments
 (0)