Skip to content

Commit 266888a

Browse files
fix(files): Add default value for file lines
1 parent 658300d commit 266888a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/orgmode/files/file.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function OrgFile:new(opts)
4545
filename = opts.filename,
4646
index = 0,
4747
buf = opts.buf or -1,
48+
lines = {},
4849
metadata = {
4950
mtime = stat and stat.mtime.nsec or 0,
5051
mtime_sec = stat and stat.mtime.sec or 0,

0 commit comments

Comments
 (0)