From 75a19c35bd9c880bbfdc5cbf3fd807803d04de89 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Fri, 20 Aug 2010 19:57:13 +0100 Subject: arrow offset --- dmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dmenu.c') diff --git a/dmenu.c b/dmenu.c index 5ae611f..9dd0363 100644 --- a/dmenu.c +++ b/dmenu.c @@ -124,7 +124,7 @@ drawmenu(void) { dc_drawtext(dc, "<", normcol); for(item = curr; item != next; item = item->right) { dc->x += dc->w; - dc->w = MIN(dc_textw(dc, item->text), mw - dc->x); + dc->w = MIN(dc_textw(dc, item->text), mw - dc->x - dc_textw(dc, ">")); dc_drawtext(dc, item->text, (item == sel) ? selcol : normcol); } dc->w = dc_textw(dc, ">"); -- cgit v1.2.3-13-gbd6f