X-Git-Url: http://www.git.cypherpunks.ru/?p=goredo.git;a=blobdiff_plain;f=do.go;h=516b1438c28d5751d477f645c57c45aae47f0956;hp=360cc29b0e99fa51e306588b3e8024133a87f10d;hb=fa0728d6bc790672982ba006961077371d2b552d;hpb=4833ec5f8dec865fbf600a0aeab2bc64fc620f96 diff --git a/do.go b/do.go index 360cc29..516b143 100644 --- a/do.go +++ b/do.go @@ -1,6 +1,6 @@ /* -goredo -- redo implementation on pure Go -Copyright (C) 2020 Sergey Matveev +goredo -- djb's redo implementation on pure Go +Copyright (C) 2020-2021 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -82,7 +82,7 @@ func findDo(fdDep *os.File, cwd, tgt string) (string, int, error) { } } levels = append(levels, "..") - dirAbs, err := filepath.Abs(updir) + dirAbs, err := filepath.Abs(path.Join(cwd, updir)) if err != nil { panic(err) }