commit | 2a0b1644c057a8d5bb0d4da04d143f12810d9631 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@golang.org> | Sat Oct 25 11:16:08 2014 -0700 |
committer | Adam Langley <agl@golang.org> | Sat Oct 25 11:16:08 2014 -0700 |
tree | c50ed3d232b20fcb64cb3721767bb0de2ccbb39d | |
parent | e0a9d256f77a18c7bae4a44233a6a9d914a3f866 [diff] |
go.crypto/ssh/terminal: fix crash when terminal narrower than prompt. Previously, if the current line was "empty", resizes wouldn't trigger repaints. However, the line can be empty when the prompt is non-empty and the code would then panic after a resize because the cursor position was outside of the terminal. LGTM=bradfitz R=bradfitz CC=golang-codereviews https://golang.org/cl/158090043