This commit is contained in:
Kovid Goyal
2023-09-22 12:11:07 +05:30
parent c650bd0aac
commit b26c4c16d0

View File

@@ -151,7 +151,7 @@ func main(cmd *cli.Command, o *Options, args []string) (rc int, err error) {
} else { } else {
t, oerr := tty.OpenControllingTerm() t, oerr := tty.OpenControllingTerm()
if oerr != nil { 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() screen_size, err = t.GetSize()
} }