We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 386ab2c commit eff1245Copy full SHA for eff1245
swattool/review.py
@@ -98,10 +98,13 @@ def _list_failures_menu(builds: list[swatbuild.Build],
98
userinfos: userdata.UserInfos,
99
entry: int) -> int:
100
"""Allow the user to select the failure to review in a menu."""
101
+ termsize = shutil.get_terminal_size((80, 20))
102
+ width = termsize.columns - 2 # Borders
103
+
104
def preview_failure(fstr):
105
fnum = int(fstr.split()[0])
106
build = [b for (i, b) in enumerate(builds) if b.id == fnum][0]
- return build.format_description(userinfos[fnum])
107
+ return build.format_description(userinfos[fnum], width)
108
109
shown_fields = [
110
swatbuild.Field.BUILD,
0 commit comments