src

Go monorepo.
Log | Files | Refs

commit 952c91f230f2f896eb2bed42929d5eed70ae562f
parent 88362904ec240a63a840ce25f88a91a92e0718a4
Author: dwrz <dwrz@dwrz.net>
Date:   Thu,  8 Dec 2022 18:47:31 +0000

Fix wen editor tempdir parameter

Diffstat:
Mcmd/wen/main.go | 1+
Mpkg/editor/editor.go | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/wen/main.go b/cmd/wen/main.go @@ -42,6 +42,7 @@ func main() { In: os.Stdin, Log: log.New(f), Out: os.Stdout, + TempDir: wdir, Terminal: t, }) if err != nil { diff --git a/pkg/editor/editor.go b/pkg/editor/editor.go @@ -48,7 +48,7 @@ func New(p Parameters) (*Editor, error) { // Create the initial scratch buffer. scratch, err := buffer.Create(buffer.NewBufferParams{ - Name: editor.tmpdir + "scratch", + Name: editor.tmpdir + "/scratch", Log: editor.log, }) if err != nil {