Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/xbps-query/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ list_pkgs_in_dict(struct xbps_handle *xhp UNUSED,
short_desc);
/* add ellipsis if the line was truncated */
if (len >= lpc->maxcols && lpc->maxcols > 4) {
for (unsigned int j = 0; j < 3; j++)
lpc->linebuf[lpc->maxcols-j-1] = '.';
lpc->linebuf[lpc->maxcols] = '\0';
lpc->linebuf[lpc->maxcols - 4] = '.';
lpc->linebuf[lpc->maxcols - 3] = '.';
lpc->linebuf[lpc->maxcols - 2] = '.';
}
puts(lpc->linebuf);

Expand Down
Loading