Allow full description if there is no room to shorten #103
No reviewers
Labels
No Label
bug
compatibility
documentation
duplicate
enhancement
future release
help wanted
invalid
non-code
question
refactor
testing
this release
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cmccabe/linkulator2#103
Loading…
Reference in New Issue
No description provided.
Delete Branch "fzzyyti/linkulator2:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The textwrap.shorten method throws a ValueError if desc_len is less than or equal to 0. This is the case using Termius with my phone at a 37 column width. The exception is caught and the user sees a message saying no thread was found with the typed ID.
Instead of throwing the exception, the description could default to full length if there is not enough room to show the table without wrapping anyway.
I tested this on RTC with a phone and a regular sized terminal emulator.
hi @fzzyyti,
thanks for the bug report as well as a fix :)
i think i will put this one in as-is, and have applied a fix to the branch where a curses version is being built.
Additionally, this screen should probably not display as many fields in a narrow screen. it should be possible to calculate a point at which a certain field should not be printed, with the minimum of index, description and new marker being printed. I'll raise a new issue for this.