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

Fix crash in issue/pr list for narrow terminals #495

Merged
merged 1 commit into from
Feb 18, 2020
Merged

Conversation

mislav
Copy link
Contributor

@mislav mislav commented Feb 18, 2020

If the available column width is smaller than 3, don't try to truncate with ellipsis (...). Instead, just truncate to available width.

Fixes #431

If the available column width is smaller than 3, don't try to truncate
with ellipsis (`...`). Instead, just truncate to available width.
@vilmibm vilmibm merged commit 30a4a53 into master Feb 18, 2020
@mislav mislav deleted the table-crash branch February 20, 2020 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic running "gh pr list at /home/runner/work/cli/cli/utils/table_printer.go:179
2 participants