aboutsummaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-08-20 19:57:13 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-08-20 19:57:13 +0100
commit75a19c35bd9c880bbfdc5cbf3fd807803d04de89 (patch)
tree9cf184dad425ab41c4d650e083bcde0612971499 /dmenu.c
parenta5f31f570774ca1d4a504d8c13c96af0217635a7 (diff)
downloaddmenu-75a19c35bd9c880bbfdc5cbf3fd807803d04de89.tar.gz
dmenu-75a19c35bd9c880bbfdc5cbf3fd807803d04de89.tar.bz2
dmenu-75a19c35bd9c880bbfdc5cbf3fd807803d04de89.zip
arrow offset
Diffstat (limited to 'dmenu.c')
-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) {
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, ">");