Fix wrong terminal size.

This commit is contained in:
Markus Reiter 2024-07-15 20:46:15 -04:00
parent 3b5b669b61
commit a114575663
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -63,7 +63,7 @@ module Tty
sig { returns(T.nilable([Integer, Integer])) }
def size
`/bin/stty size 2>/dev/null`.split&.map(&:to_i)
`/bin/stty size 2>/dev/null`.presence&.split&.map(&:to_i)
end
sig { returns(Integer) }