mirror of
https://github.com/hymkor/lispect.git
synced 2026-08-28 04:46:59 -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,
|
// 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)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user