watcher.go: trivial modify

This commit is contained in:
HAYAMA_Kaoru
2024-11-30 10:45:36 +09:00
parent 7cee075958
commit eceaa0bfbc
+3 -2
View File
@@ -26,8 +26,9 @@ func NewWatcher(pty io.ReadWriter) *Watcher {
// If the code below spends a lot of time, // If the code below spends a lot of time,
// It hangs up to io.Copy(pty, os.Stdin) // It hangs up to io.Copy(pty, os.Stdin)
// The reason is unknown. // The reason is unknown.
os.Stdout.Write(buffer[:n]) b := buffer[:n]
pipeline <- string(buffer[:n]) os.Stdout.Write(b)
pipeline <- string(b)
} }
}() }()