Skip to content

Commit

Permalink
gui: pretty print recentcollect
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed Sep 28, 2024
1 parent 5b4e528 commit 585c623
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/widget_recentcollect.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ recently_used_collections_draw(
if(isdigit(date[0]) && isdigit(date[1]) && isdigit(date[2]) && isdigit(date[3]))
off = snprintf(c, len, "%.4s %s", date, desc);
else
off = snprintf(c, len, "%s", last);
{
int l = 0;
for(;last[l]&&last[l]!='&';l++) {}
off = snprintf(c, len, "%.*s", l, last);
}
c += off; len -= off;

if(len > 0 && (f->active & (1<<s_prop_createdate)))
Expand Down

0 comments on commit 585c623

Please sign in to comment.