Skip to content

Commit

Permalink
Fix wrong terminal size.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Jul 16, 2024
1 parent 0cc3d96 commit d383cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/utils/tty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def show_cursor

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) }
Expand Down

0 comments on commit d383cd4

Please sign in to comment.