We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8d9e67 commit 25fba2eCopy full SHA for 25fba2e
bin/xbps-query/list.c
@@ -81,9 +81,9 @@ list_pkgs_in_dict(struct xbps_handle *xhp UNUSED,
81
short_desc);
82
/* add ellipsis if the line was truncated */
83
if (len >= lpc->maxcols && lpc->maxcols > 4) {
84
- for (unsigned int j = 0; j < 3; j++)
85
- lpc->linebuf[lpc->maxcols-j-1] = '.';
86
- lpc->linebuf[lpc->maxcols] = '\0';
+ lpc->linebuf[lpc->maxcols - 4] = '.';
+ lpc->linebuf[lpc->maxcols - 3] = '.';
+ lpc->linebuf[lpc->maxcols - 2] = '.';
87
}
88
puts(lpc->linebuf);
89
0 commit comments