Skip to content

Commit 238e30f

Browse files
authored
min term width (keybase#13917)
* min term width
1 parent aca60ce commit 238e30f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎go/minterm/minterm.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ func (m *MinTerm) fdIn() int { return int(m.termIn.Fd()) }
7878
func (m *MinTerm) getNewTerminal(prompt string) (*terminal.Terminal, error) {
7979
term := terminal.NewTerminal(m.getReadWriter(), prompt)
8080
a, b := m.Size()
81+
if a < 80 {
82+
a = 80
83+
}
8184
err := term.SetSize(a, b)
8285
if err != nil {
8386
return nil, err

0 commit comments

Comments
 (0)