Compare commits

...

3 Commits

Author SHA1 Message Date
c5f304380e one more try 2020-08-21 10:38:18 +10:00
0aaf4acd52 apply the right separator for concat 2020-08-21 10:37:19 +10:00
d15a841316 made ed.open use the full path for the file 2020-08-21 10:35:48 +10:00

View File

@ -123,7 +123,7 @@ function ed.open(buffer)
end end
if type(buffer) ~= "table" then buffer = ed.newBuffer() end if type(buffer) ~= "table" then buffer = ed.newBuffer() end
buffer[1] = buffer[1] or "" buffer[1] = buffer[1] or ""
buffer.path = buffer.path or bpath buffer.path = buffer.path or "/"..((bpath:sub(1,1) == "/" and table.concat(fs.segments(path),"/")) or table.concat(fs.segments(os.getenv("PWD").."/"..bpath),"/"))
return buffer return buffer
end end