Skip to content

Commit b1a6733

Browse files
committed
Wrap wide columns with the list of commands
1 parent ca63823 commit b1a6733

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/rigctl_parse.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1963,6 +1963,7 @@ void usage_rig(FILE *fout)
19631963
{
19641964
int i;
19651965
int column = 1;
1966+
int wrapped = 0;
19661967

19671968
fprintf(fout, "Commands (some may not be available for this rig):\n");
19681969

@@ -1990,9 +1991,10 @@ void usage_rig(FILE *fout)
19901991
nbspaces -= fprintf(fout, ",%s", test_list[i].arg3);
19911992
}
19921993

1993-
if ((nbspaces < 1) || (column == 2))
1994+
if ((nbspaces < 1) || (column == 2) || wrapped)
19941995
{
19951996
fprintf(fout, ")\n");
1997+
wrapped = (nbspaces < 1) && (column == 1);
19961998
column = 1;
19971999
}
19982000
else

0 commit comments

Comments
 (0)