From 3a445daef931d0ef4f6d91d2329aa7d7fadd162b Mon Sep 17 00:00:00 2001 From: hq0101 <143695400+hq0101@users.noreply.github.com> Date: Thu, 13 Jun 2024 21:03:21 +0800 Subject: [PATCH] Update term_windows.go fix: term_windows.go t.SetStartDir() is not working --- term_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/term_windows.go b/term_windows.go index d282e40..6df1051 100644 --- a/term_windows.go +++ b/term_windows.go @@ -28,6 +28,7 @@ func (t *Terminal) startPTY() (io.WriteCloser, io.Reader, io.Closer, error) { []string{}, &syscall.ProcAttr{ Env: os.Environ(), + Dir: t.startingDir(), }, ) if err != nil {