From d15a84131686de7391f48b3d0572b992e8f7b54e Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Fri, 21 Aug 2020 10:35:25 +1000 Subject: [PATCH] made ed.open use the full path for the file --- lib/ed.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ed.lua b/lib/ed.lua index da1fab7..c63a03e 100644 --- a/lib/ed.lua +++ b/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 + 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