瀏覽代碼

one more try

master
XeonSquared 3 年之前
父節點
當前提交
c5f304380e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      lib/ed.lua

+ 1
- 1
lib/ed.lua 查看文件

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



Loading…
取消
儲存