mirror of
https://github.com/hymkor/lispect.git
synced 2026-08-27 20:36:34 -04:00
watcher.go: trivial modify
This commit is contained in:
+3
-2
@@ -26,8 +26,9 @@ func NewWatcher(pty io.ReadWriter) *Watcher {
|
||||
// If the code below spends a lot of time,
|
||||
// It hangs up to io.Copy(pty, os.Stdin)
|
||||
// The reason is unknown.
|
||||
os.Stdout.Write(buffer[:n])
|
||||
pipeline <- string(buffer[:n])
|
||||
b := buffer[:n]
|
||||
os.Stdout.Write(b)
|
||||
pipeline <- string(b)
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user