Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero winsize bugfix #1073

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Zero winsize bugfix #1073

merged 2 commits into from
Jan 27, 2025

Conversation

tompng
Copy link
Member

@tompng tompng commented Jan 23, 2025

Fixes #1072

Fix Pager page overflow calculation not to raise error when width is zero.
InputMethod#winsize now fallbacks to [24, 80] when the return value of STDIN.winsize is invalid: zero width or zero height.

@tompng tompng merged commit b37c1c2 into ruby:master Jan 27, 2025
34 checks passed
@tompng tompng deleted the zero_winsize_bugfix branch January 27, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

An error occurred when inspecting the object: #<NoMethodError: undefined method 'end_with?' for nil>
2 participants