diff --git a/src/Acorn.jl b/src/Acorn.jl index 9331963..e4dd4fc 100644 --- a/src/Acorn.jl +++ b/src/Acorn.jl @@ -24,7 +24,7 @@ include("cmds/echo.jl") function acorn(filename::String; rel::Bool=true) ed = Editor() - rel && (filename = abspath(filename)) + #rel && (filename = abspath(filename)) editorOpen(ed, filename) diff --git a/src/editor.jl b/src/editor.jl index 3914fac..3baf832 100644 --- a/src/editor.jl +++ b/src/editor.jl @@ -68,19 +68,10 @@ end # FILE OPERATIONS # ################### -function expand(filename::String) - # If the path is something like "~/Desktop/..." expand it - if length(filename) > 1 && filename[1] == '~' - filename = expanduser(filename) - end - - return filename -end - """ Open a file and read the lines into the ed.rows array """ function editorOpen(ed::Editor, filename::String) try - filename = expand(filename) + filename = expanduser(filename) # If no file exists, create it !isfile(filename) && open(filename, "w") do f end