Compare commits
3 Commits
d12ec38016
...
c5f304380e
Author | SHA1 | Date | |
---|---|---|---|
c5f304380e | |||
0aaf4acd52 | |||
d15a841316 |
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user