aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c
index 5ae611f..9dd0363 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -124,7 +124,7 @@ drawmenu(void) {
124 dc_drawtext(dc, "<", normcol); 124 dc_drawtext(dc, "<", normcol);
125 for(item = curr; item != next; item = item->right) { 125 for(item = curr; item != next; item = item->right) {
126 dc->x += dc->w; 126 dc->x += dc->w;
127 dc->w = MIN(dc_textw(dc, item->text), mw - dc->x); 127 dc->w = MIN(dc_textw(dc, item->text), mw - dc->x - dc_textw(dc, ">"));
128 dc_drawtext(dc, item->text, (item == sel) ? selcol : normcol); 128 dc_drawtext(dc, item->text, (item == sel) ? selcol : normcol);
129 } 129 }
130 dc->w = dc_textw(dc, ">"); 130 dc->w = dc_textw(dc, ">");