mirror of
https://github.com/golang/term.git
synced 2026-01-29 07:02:06 +03:00
go.crypto/ssh/terminal: support Go 1.0.
For those still stuck on Go 1.0. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/11297043
This commit is contained in:
@@ -568,6 +568,8 @@ func (t *Terminal) readLine() (line string, err error) {
|
||||
|
||||
t.remainder = t.inBuf[:n+len(t.remainder)]
|
||||
}
|
||||
|
||||
panic("unreachable") // for Go 1.0.
|
||||
}
|
||||
|
||||
// SetPrompt sets the prompt to be used when reading subsequent lines.
|
||||
|
||||
Reference in New Issue
Block a user