This commit is contained in:
Kovid Goyal 2023-09-22 12:11:07 +05:30
parent c650bd0aac
commit b26c4c16d0
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -151,7 +151,7 @@ func main(cmd *cli.Command, o *Options, args []string) (rc int, err error) {
} else {
t, oerr := tty.OpenControllingTerm()
if oerr != nil {
return 1, fmt.Errorf("Failed to open controlling terminal with error: %w", err)
return 1, fmt.Errorf("Failed to open controlling terminal with error: %w", oerr)
}
screen_size, err = t.GetSize()
}